Quick question about the loop
    1 visualizzazione (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
How do I collect values that were done through the loop?
For example,
M=10:40
for i=0:30;
    i=i+1;
    A=10+M(i);
end
and the answer just comes out as A=50, instead of A=20:50. What would I do in order to collect the 30 values as matrix?
0 Commenti
Risposta accettata
Più risposte (1)
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!


