Too many output arguments.
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I am new to matlab and I need help.
Im tring to scale my x vectors by 2 and y vectors by 4.
both x vector and y vecotr has dimension of 1x1000.
the code is below
[c,d]= [2 0;0 4]*[x;y];
when I run the code, I get an error of too many outputs.
Thank you in advance
0 comentarios
Respuestas (2)
Walter Roberson
el 3 de Oct. de 2019
You cannot do that in MATLAB. The mtimes operator (the formal name for the * operator) only creates a single output argument. You will have to assign the output to a single variable and break apart that single variable into the part representing the new x and the part representing the new y.
0 comentarios
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!