Convert dir object to char
This commit is contained in:
@@ -71,8 +71,9 @@ function varargout = EASYconsole(varargin)
|
|||||||
fullfile(parentDir, '..', '..', 'templates', 'scans-demo')
|
fullfile(parentDir, '..', '..', 'templates', 'scans-demo')
|
||||||
};
|
};
|
||||||
for i=1:length(dirsToScan)
|
for i=1:length(dirsToScan)
|
||||||
d=fullfile(dirsToScan(i));
|
d=dirsToScan(i);
|
||||||
if exist(char(d), 'dir')
|
d=char(d);
|
||||||
|
if exist(d, 'dir')
|
||||||
subDirs=dir(d);
|
subDirs=dir(d);
|
||||||
pattern='^\d{6}_.*_.*';
|
pattern='^\d{6}_.*_.*';
|
||||||
matchedDirs={dirs(regexp(subDirs.name, pattern)).name};
|
matchedDirs={dirs(regexp(subDirs.name, pattern)).name};
|
||||||
|
|||||||
Reference in New Issue
Block a user