Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How do I write a loop in Matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Walter Roberson
am 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
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!