Question about load .mat files
显示 更早的评论
I have a group of .mat files, which have continuous number of name, i.e. from W_star_1.mat to W_star_300.mat. Could I write a code using "for i=1:300" loop to load all of them instead of loading them one by one? Thank you very much.
采纳的回答
更多回答(1 个)
mohammad
2012-7-7
First you can save them when all of them are on the workspace
save(['name', '.mat']);
then use
load(['name', '.mat']);
类别
在 帮助中心 和 File Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!