How to do Batch Assignment
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Yize Wang
el 29 de Mayo de 2019
Comentada: Yize Wang
el 31 de Mayo de 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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!