How to assign parameters at the same time?
Afficher commentaires plus anciens
I have a vector v = [1,2,3,4,5] and I would like to do the following in a shorter form (in one line), if possible: a = v(1); second = v(2); v3 = v(3); something = v(4); z = v(5); It would be nice to do like this: [a,second,v3,something,z] = ... ?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!