Hi,
When I execute a particular function, it produces 70 values in ans. But i want only first 15 values stored in a array variable. How do I do it?
TIA

 Respuesta aceptada

Star Strider
Star Strider el 26 de Abr. de 2019

1 voto

It appears that you are calling the function without an output assignment.
Call it as:
v = theFunction(x);
then:
v = v(1:15);
to keep only those elements you want.

Más respuestas (0)

Categorías

Productos

Versión

R2019a

Preguntada:

el 26 de Abr. de 2019

Respondida:

el 26 de Abr. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by