MATLAB 批量处理文件

MATLAB 批量处理文件


MATLAB 批量处理 *.mat *.txt

假设D:\File\文件下:Ls1.mat,Ls2.mat,Ls3.mat……Ls60.mat文件。

filePath='D:\File\';
for i = 1:60
   fileName=strcat(filePath,'Ls',num2str(i),'.mat'); 
   load(fileName); % 即可将文件读入
end

猜你喜欢

转载自blog.csdn.net/MissXy_/article/details/81316908