%select all .mat files
oar = dir('*oar.mat'); n = {oar.name};
%loop through files
for l=1:length(oar);
load pat_oar(l) %<---this is the .mat file with variable filename
clear ...
end
如何编写一些将在一个又一个.mat文件中读取的Matlab脚本......
%select all .mat files
oar = dir('*oar.mat'); n = {oar.name};
%loop through files
for l=1:length(oar);
load pat_oar(l) %<---this is the .mat file with variable filename
clear ...
end
如何编写一些将在一个又一个.mat文件中读取的Matlab脚本......