All functions should return static output (i.e. no use of varargout).
Some functions do not do this, including pspm_overwrite and pspm_prepdata.
This requires checking the entire codebase where these functions are called.
pspm_overwrite
This is an internal function with no user-specified arguments. Thus, the output argument sts is not needed, and we can settle on one static output argument.
There should be a third value for overwrite which signifies that the argument has not been set by the user.
In case of this third value, the GUI should be enabled in case the file exists.
pspm_options should use this third value as default.
pspm_options should check the field .overwrite for all (and only for these) functions that create new files.
Check all instances in PsPM where pspm_overwrite is called and ensure the output arguments are set appropriately.
pspm_prepdata
This is an internal function but it checks a user-supplied struct variable and so requires input checking and a sts output.
Thus, ensure a static output [sts, data, newsr].
Check all instances in PsPM where pspm_prepdata is called and ensure the output arguments are set appropriately.
Other functions
Check all PsPM functions in the src folder and list all that use varargout.
Summary
All functions should return static output (i.e. no use of
varargout
). Some functions do not do this, includingpspm_overwrite
andpspm_prepdata
. This requires checking the entire codebase where these functions are called.pspm_overwrite
sts
is not needed, and we can settle on one static output argument.overwrite
which signifies that the argument has not been set by the user.pspm_options
should use this third value as default.pspm_options
should check the field.overwrite
for all (and only for these) functions that create new files.pspm_overwrite
is called and ensure the output arguments are set appropriately.pspm_prepdata
sts
output.[sts, data, newsr]
.pspm_prepdata
is called and ensure the output arguments are set appropriately.Other functions
Check all PsPM functions in the src folder and list all that use
varargout
.