Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
how can a loop be done?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Andrei Bobrov
am 2 Sep. 2011
for j1 = 1:size(X,2)
newMatrix = X(:,1:j1);
% result = fun(newMatrix)
end
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!