Need fast way to find folders using DIR command
4 ビュー (過去 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!