필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how can a loop be done?

조회 수: 1 (최근 30일)
Niki
Niki 2011년 9월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

Andrei Bobrov
Andrei Bobrov 2011년 9월 2일
for j1 = 1:size(X,2)
newMatrix = X(:,1:j1);
% result = fun(newMatrix)
end

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by