Simply Directory Question
古いコメントを表示
Hello All,
Quick question, I am trying to load all files from a folder that have a .m ext:
folder = C:\Users\ecorbett\Documents\MATLAB\UI\VCoachData\0005_Capture_10072009\AccelData
files = dir(folder)
I know I need to include something like '*.m' in dir but I dont know the correct syntax to do so. Can someone help me with this?
採用された回答
その他の回答 (2 件)
B_Richardson
2011 年 8 月 5 日
4 件のコメント
Oleg Komarov
2011 年 8 月 5 日
z=dir([file2 '*.m']);
without the \
B_Richardson
2011 年 8 月 5 日
B_Richardson
2011 年 8 月 5 日
Oleg Komarov
2011 年 8 月 5 日
can you show what's file2?
カテゴリ
ヘルプ センター および File Exchange で File Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!