Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How do I write a loop in Matlab

2 visualizaciones (últimos 30 días)
Robert Henson
Robert Henson el 16 de Abr. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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 comentario
Walter Roberson
Walter Roberson el 16 de Abr. de 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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by