Commit aac25a88 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

bug fix: substr not a matlab function

parent ec9f53a2
...@@ -111,7 +111,7 @@ for i=2:nargin ...@@ -111,7 +111,7 @@ for i=2:nargin
no_log = no_log || strcmp(varargin{i-1}, 'nolog'); no_log = no_log || strcmp(varargin{i-1}, 'nolog');
end end
if ~no_log if ~no_log
logname = [ substr(fname, 1, -4) '.log' ]; logname = [fname(1:end-4) '.log'];
fid = fopen(logname, 'w'); fid = fopen(logname, 'w');
fputs(fid, result); fputs(fid, result);
fclose(fid); fclose(fid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment