0
おはよう、すべてのループ結果を保存する
私の質問は非常にシンプルでなければならないと思っています。ループがあり、結果を「保存」したい。問題は私が最後の列だけを保存することができますコードではなく、すべてです。コードは次のとおりです。
b = xlsread('Data.xls', 'Sheet1'); %here I'm reading the excel data
d= size(b); % the size of the input table is 8 x 16 columns.
cols= d(:,2);
Results=[]
for a=b(:,2:cols)
n= 2;
m2 = ar(a,n);
K=6;
hf2=forecast(m2,a,K);
for a=b(:,2:cols) % here I try to save the results but it only save the 'last column', not all the columns.
Results=[forecast(m2,a,K)]
end
end
何が問題なのですか?
ありがとうございます! :)