Adding numbers in a row vector
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ali Fuat Yuvali
il 28 Feb 2021
Commentato: Ali Fuat Yuvali
il 28 Feb 2021
How can I tell the computer to do this instead of manually typing it?
a = [1,2,3];
alist = [a(1),a(1)+a(2),a(1)+a(2)+a(3)]
Played around with a for loop but it didn't do what I wanted.
0 Commenti
Risposta accettata
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!