Matlab批处理

Path = '路径'; %''中填写路径
File = dir(fullfile(Path,'*.mat'));  %格式
FileNames = {File.name}';
Trace = strcat(Path,FileNames(k));
A = load(Trace{1,1}); %多组数据常采用eval函数