Info

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

how can a loop be done?

1 visualización (últimos 30 días)
Niki
Niki el 2 de Sept. de 2011
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have a Matrix X for example X=rand(100) then I would like to take one column each time and then add another one and each time add one more until all the columns become the original matrix

Respuestas (1)

Andrei Bobrov
Andrei Bobrov el 2 de Sept. de 2011
for j1 = 1:size(X,2)
newMatrix = X(:,1:j1);
% result = fun(newMatrix)
end

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by