how to store output for different values of i's ?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
parag gupta
il 18 Mar 2019
Commentato: parag gupta
il 18 Mar 2019
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 Commenti
Risposta accettata
madhan ravi
il 18 Mar 2019
p=cell(1,4); % before loop
p{i}=... % inside loop
5 Commenti
madhan ravi
il 18 Mar 2019
You have some problems with copying go back and see the answer I gave you.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!