How do I import/load multiple files from folder in MATLAB?
12 次查看(过去 30 天)
显示 更早的评论
I have files named as 1.mat, 2.mat, ......, 365.mat in a one folder (C:\Users\DELL\Desktop\mat files). I need to import/load all these files one after one in workspace. How to do this by using 'for loop'?
1.mat is 2400*365 double and within the loop I want to use reshape function.
Thank you for the help in advance.
0 个评论
采纳的回答
madhan ravi
2018-10-18
编辑:madhan ravi
2018-10-18
AllFiles=dir('*.mat'); %just specify the format correctly
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!