Skip to content

Commit 1fe7a83

Browse files
committed
Minor bug fixes
1 parent 8d4ba53 commit 1fe7a83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

swfiles/sw_status.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function sw_status(percent,varargin)
2323
return
2424
end
2525

26-
if nargin > 2 && ~isempty(varargin{2})
26+
if nargin > 2 && ~isempty(varargin{2}) && ~ischar(varargin{2})
2727
fid = varargin{2};
2828
else
2929
fid = swpref.getpref('tid',[]);

swfiles/sw_version.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function varargout = sw_version()
1+
function outStr = sw_version()
22
% returns the installed version of SpinW
33
%
44
% SW_VERSION()
@@ -105,12 +105,12 @@
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
116116
end

0 commit comments

Comments
 (0)