0
我想在excel表格中保存四個變量,用於下面的MATLAB代碼。在代碼的最後部分需要您的幫助才能達到相同的效果。先謝謝你。在excel中保存多個數組的數據在MATLAB中
clear all;
close all;
for k = 1:9
filename = sprintf('Data_F_Ind000%d.txt',k);
data = load (filename);
alldata = eemd(data(:,1),0.01,10);
I1 = alldata (1,:);
I2 = alldata (2,:);
I3 = alldata (3,:);
I4 = alldata (4,:);
end
xlswrite('imf.xlsx',I1,1);
xlswrite('imf.xlsx',I2,2);
xlswrite('imf.xlsx',I3,3);
xlswrite('imf.xlsx',I4,4);