git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
4e48c43
Branches
Tags
master
SVMCrossVal.git
private
listDirs.m
moved things
Christoph Budziszewski
commited
4e48c43
at 2009-02-09 16:44:50
listDirs.m
Blame
History
Raw
function dirs = listDirs(wd) % d = listDirs(dir) returns all directories below dir as a cell array. % the Structure is the same as from the 'dir' command (because this % function relies on 'dir' % . and .. are filterd. no intetion to include an option switch for those % special dirs. allfiles = dir(wd); nDirs = 1; for i = 1:size(allfiles) file = allfiles(i); if file.isdir && file.name(1)~='.' dirs{nDirs}=file; nDirs = nDirs +1; end end