2017-05-27 8 views
0

以下のMATLABコードのExcelシートに4つの変数を保存します。同じことを達成するためにコードの最後の部分であなたの助けが必要です。前もって感謝します。MATLABでExcelに複数の配列データを保存する

あなたは、たとえば正しく

xlswrite(<name of excel>, <matrix to save>, <sheet>, <range>) 

機能を使用する必要が

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); 

答えて

1

%This writes your I1 matrix in the "yourExcelSheet" sheet into the 
% "yourname.xlsx" file starting at the cell A1 and using all the space that 
% matrix I1 needs to write 
xlswrite ('yourname.xlsx',I1,'YourExcelSheet','A1'); 
関連する問題