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!