How to do Batch Assignment
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Yize Wang
il 29 Mag 2019
Commentato: Yize Wang
il 31 Mag 2019
Hello,
I am wondering whether there is a way in MATLAB to assign multiple variables with in a single line of code. What I am looking for is as something as follows,
[x,y,z]=[1,2,3]
instead of,
x = 1;
y = 2;
z = 3;
Thanks in advance!
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical 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!