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 Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by