サブフォルダ名の取得時に.や..を除く方法について教えてください
Mostrar comentarios más antiguos
フォルダAの中に複数のフォルダとファイルがあり,その中でフォルダ名のみを取り出すプログラムを書いています.
folderInfo=dir(read_dir);
folderlist=folderInfo([folderInfo.isdir]);
上記でフォルダの一覧を取得することはできたのですが,'.'や'..'という名前のフォルダが含まれてしまいます. これらのフォルダを除外してフォルダ名のみの一覧を取得することはできるでしょうか?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre ファイルの操作 en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!