Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How do I write a loop in Matlab

1 vue (au cours des 30 derniers jours)
Robert Henson
Robert Henson le 16 Avr 2019
Clôturé : MATLAB Answer Bot le 20 Août 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 commentaire
Walter Roberson
Walter Roberson le 16 Avr 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

Réponses (0)

Cette question est clôturée.

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by