File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function sw_status(percent,varargin)
23
23
return
24
24
end
25
25
26
- if nargin > 2 && ~isempty(varargin{2 })
26
+ if nargin > 2 && ~isempty(varargin{2 }) && ~ischar(varargin{ 2 })
27
27
fid = varargin{2 };
28
28
else
29
29
fid = swpref .getpref(' tid' ,[]);
Original file line number Diff line number Diff line change 1
- function varargout = sw_version()
1
+ function outStr = sw_version()
2
2
% returns the installed version of SpinW
3
3
%
4
4
% SW_VERSION()
105
105
if any(revNum )
106
106
ver0.Revision = num2str(revNum );
107
107
end
108
- varargout{ 1 } = ver0 ;
108
+ outStr = ver0 ;
109
109
else
110
110
if isempty(fieldnames(verStruct ))
111
- varargout{ 1 } = ver0 ;
111
+ outStr = ver0 ;
112
112
else
113
- varargout{ 1 } = verStruct ;
113
+ outStr = verStruct ;
114
114
end
115
115
end
116
116
end
You can’t perform that action at this time.
0 commit comments