Save for loop result
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi
My Code is like this,
for i = 1:100
for j = 1:500
B
end
Result_B
end
The Result_B is a single column vector for 500j's and a single i(latest value).
What I would like is to have that Result_B to be as it is, that is a column matrix, just that with every new incremented i the result to be tacked onto the next column.
Thanks
0 Commenti
Risposta accettata
Thomas
il 13 Apr 2012
This video should help:
Eg>
for i = 1:100
for j = 1:500
B(i,j)=rand(1);
end
end
B will be a matrix of 100*500
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!