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)
2323 return
2424end
2525
26- if nargin > 2 && ~isempty(varargin{2 })
26+ if nargin > 2 && ~isempty(varargin{2 }) && ~ischar(varargin{ 2 })
2727 fid = varargin{2 };
2828else
2929 fid = swpref .getpref(' tid' ,[]);
Original file line number Diff line number Diff line change 1- function varargout = sw_version()
1+ function outStr = sw_version()
22% returns the installed version of SpinW
33%
44% SW_VERSION()
105105 if any(revNum )
106106 ver0.Revision = num2str(revNum );
107107 end
108- varargout{ 1 } = ver0 ;
108+ outStr = ver0 ;
109109 else
110110 if isempty(fieldnames(verStruct ))
111- varargout{ 1 } = ver0 ;
111+ outStr = ver0 ;
112112 else
113- varargout{ 1 } = verStruct ;
113+ outStr = verStruct ;
114114 end
115115 end
116116end
You can’t perform that action at this time.
0 commit comments