File size: 387 Bytes
e9fe176
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function [ dirList baseList] = FileList2DirList( fileList )
dirList = cell(size(fileList));
if(nargout>1)
    baseList = cell(size(fileList));
    for i = 1:length(fileList)
        [dirList{i} base ext] = fileparts(fileList{i});
        baseList{i} = [base ext];
    end
else
    for i = 1:length(fileList)
        [dirList{i}] = fileparts(fileList{i});
    end
end
end