필터 지우기
필터 지우기

how to store output for different values of i's ?

조회 수: 1 (최근 30일)
parag gupta
parag gupta 2019년 3월 18일
댓글: parag gupta 2019년 3월 18일
for i = 1:4
p1= [1,2;2,3]
end
How to store output for different values of i's so that I end up 4 matrices instead of one matrix.I mean i dont want it to overwrites the matrices in the previous step.I want 4 matrices to be stored at the end.

채택된 답변

madhan ravi
madhan ravi 2019년 3월 18일
p=cell(1,4); % before loop
p{i}=... % inside loop
  댓글 수: 5
madhan ravi
madhan ravi 2019년 3월 18일
You have some problems with copying go back and see the answer I gave you.
parag gupta
parag gupta 2019년 3월 18일
hahaha ...thanks..i put the wrong bracket.
thanks ravi

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by