Simply Directory Question
Mostrar comentarios más antiguos
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?
Respuesta aceptada
Más respuestas (2)
B_Richardson
el 5 de Ag. de 2011
4 comentarios
Oleg Komarov
el 5 de Ag. de 2011
z=dir([file2 '*.m']);
without the \
B_Richardson
el 5 de Ag. de 2011
B_Richardson
el 5 de Ag. de 2011
Oleg Komarov
el 5 de Ag. de 2011
can you show what's file2?
B_Richardson
el 5 de Ag. de 2011
0 votos
Categorías
Más información sobre File Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!