How to exclude a file type when using copyfile?
4 ビュー (過去 30 日間)
古いコメントを表示
I need to create a script that copies all files from one directory to another, excluding a certain file type (in this case, *.bin)
Additionally, it is not sufficient to simply copy the files over, I need to keep the folder hierarchy structurally the same.
How can I do this?
0 件のコメント
採用された回答
Image Analyst
2014 年 11 月 11 日
編集済み: Image Analyst
2014 年 11 月 11 日
Use dir() as shown in the second code sample in the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F. Combine with fileparts() and strcmpi() to exclude bin extensions.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!