请问load路径中如何带有变量?。
Show older comments
各位老师好,我有一系列按顺序排列的文件夹,例如f1,f2,f3……,在每个文件夹中都有一个命名为file.mat的文件,我想顺序处理这些文件夹中的文件,请问应该怎样做?
比如
for i=1:99
load('E:\file\f',num2str(i),'\file.mat')
但是这样会报错:错误使用load,无法打开要输出的文件“E:\file\f”
感谢各位老师。
Accepted Answer
More Answers (0)
Categories
Find more on 编程 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!