サブフォルダ名の取得時に.や..を除く方法について教えてください
Afficher commentaires plus anciens
フォルダAの中に複数のフォルダとファイルがあり,その中でフォルダ名のみを取り出すプログラムを書いています.
folderInfo=dir(read_dir);
folderlist=folderInfo([folderInfo.isdir]);
上記でフォルダの一覧を取得することはできたのですが,'.'や'..'という名前のフォルダが含まれてしまいます. これらのフォルダを除外してフォルダ名のみの一覧を取得することはできるでしょうか?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur ファイルの操作 dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!