bug fix: substr not a matlab function

time-shift
Houtan Bastani 2013-03-18 16:19:48 +01:00
parent ec9f53a23b
commit aac25a88bd
1 changed files with 1 additions and 1 deletions

View File

@ -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);