Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How do I write a loop in Matlab

1 回表示 (過去 30 日間)
Robert Henson
Robert Henson 2019 年 4 月 16 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
How do I write a (double) loop in Matlab that goes through multiple pairs of interest to compute the ADF or Johansen test to see if they cointegrate.
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 4 月 16 日
Maybe something like
rows = size(YourMatrix,1);
for J = 1 : rows
for K = J+1 : rows
result(J,K,:) = jcitest(YourMatrix([J K],:));
result(K,J,:) = result(J,K,:);
end
end

回答 (0 件)

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by