diff --git a/workflow/apps/matlab/easy/EASYconsole.m b/workflow/apps/matlab/easy/EASYconsole.m index bed48cdb..cf4fd6d3 100644 --- a/workflow/apps/matlab/easy/EASYconsole.m +++ b/workflow/apps/matlab/easy/EASYconsole.m @@ -90,7 +90,7 @@ function varargout = EASYconsole(varargin) end fprintf('Scanning inside %s for a project directory\n', d); sortedMatchedDirs=sortrows(matchedDirs); - project=sortedMatchedDirs{0}; % select the latest dir (by date prefix) + project=sortedMatchedDirs{1}; % select the latest dir (by date prefix) fprintf('Selected latest project directory %s\n', char(project)); end end diff --git a/workflow/apps/matlab/ezview/EZvInitLoad.m b/workflow/apps/matlab/ezview/EZvInitLoad.m index 4a8bf215..7139080b 100755 --- a/workflow/apps/matlab/ezview/EZvInitLoad.m +++ b/workflow/apps/matlab/ezview/EZvInitLoad.m @@ -57,6 +57,7 @@ fprintf('This script name: %s\n', ezFileName); }; for i=1:length(dirsToScan) d=dirsToScan(i); + d=char(d); if exist(d, 'dir') subDirs=dir(d); pattern='^\d{6}_.*_.*'; @@ -68,7 +69,7 @@ fprintf('This script name: %s\n', ezFileName); end fprintf('Scanning inside %s for a project directory\n', char(d)); sortedMatchedDirs=sortrows(matchedDirs); - project=sortedMatchedDirs{0}; % select the latest dir (by date prefix) + project=sortedMatchedDirs{1}; % select the latest dir (by date prefix) fprintf('Selected latest project directory %s\n', char(project)); end end