Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

How do I write a loop in Matlab

2 visualizzazioni (ultimi 30 giorni)
Robert Henson
Robert Henson il 16 Apr 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commento
Walter Roberson
Walter Roberson il 16 Apr 2019
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

Risposte (0)

Questa domanda è chiusa.

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by