Need fast way to find folders using DIR command
3 次查看(过去 30 天)
显示 更早的评论
Hi - i'm trying to find only folders using the DIR command the fastest way possible. I realize the dir command returns a value "isdir" which can help you decipher this faster, however, i need something faster than that.
In past versions of maltab, i have been able to use something like
dir('C:\.*')
to bring up only folders....however this doesn't work now. any ideas? (or is my best bet to write a c function to do it?)
0 个评论
回答(1 个)
Matt Fig
2011-7-1
What version are you using, because this works on 2007b:
dir('C:\*.') % Note the . and * are transposed from yours.
3 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 File Operations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!