how to store output for different values of i's ?
1 回表示 (過去 30 日間)
古いコメントを表示
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.
0 件のコメント
採用された回答
madhan ravi
2019 年 3 月 18 日
p=cell(1,4); % before loop
p{i}=... % inside loop
5 件のコメント
madhan ravi
2019 年 3 月 18 日
You have some problems with copying go back and see the answer I gave you.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!