git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
55ebec1
Branches
Tags
master
SVMCrossVal.git
private
getFilteredFileList.m
SPM2 compatibilität begonnen
Christoph Budziszewski
commited
55ebec1
at 2009-05-20 16:17:09
getFilteredFileList.m
Blame
History
Raw
function fileList = getFilteredFileList(directory,filterpattern,fullpath) if nargin < 3 fullpath = 1; end files = dir(directory); fileList = []; for f = 1:numel(files) if files(f).isdir continue end if regexp(files(f).name,filterpattern,'once') if fullpath fileList = strvcat(fileList, fullfile(directory,files(f).name)); else fileList = strvcat(fileList, files(f).name); end end end end