File names
古いコメントを表示
I have a script that is asking me what files should it manipulate.
the two categories of files are
Hello1_14022011_1_XV_xls and Hello1_14022011_1_SF_XV_xls
when the question arise (so that the program can make the directory of all the files and manipulate them) in the program i put Hello1_****2011_*_XV_xls for the first category. The problem is that the fifth * will make the program to understand both the categories.
Is there a a way to stop the name reading at those situations?
Thanks
採用された回答
その他の回答 (1 件)
Image Analyst
2012 年 1 月 10 日
0 投票
Use strfind(filename, '_SF_') to determine if your filename belongs to the second category. Then only process the filename of the category you're interested in.
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!