-1
我有下面的代碼在MATLAB如何在MatLab中加載多個文件?
filename='1';
filetype='.txt';
filepath='D:\20170913\';
fidi = fopen(strcat(filepath,filename,filetype));
Datac = textscan(fidi, repmat('%f', 1, 640), 'HeaderLines',1,
'CollectOutput',1);
f1 = Datac{1};
sum(sum(f1))
我如何可以加載多個文件來加載一個矩陣文件,說1-100。 在此先感謝。
添加一個for循環? – 10a