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
no_log = no_log || strcmp(varargin{i-1}, 'nolog');
end
if ~no_log
logname = [ substr(fname, 1, -4) '.log' ];
logname = [fname(1:end-4) '.log'];
fid = fopen(logname, 'w');
fputs(fid, result);
fclose(fid);
......
Supports Markdown
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