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!