How to push a variable in a vector in Matlab?

 Respuesta aceptada

Matt J
Matt J el 7 de Feb. de 2013
Editada: Matt J el 7 de Feb. de 2013
A(end+1)=4;
or
A=[A,4];

3 comentarios

Manuel Ignacio
Manuel Ignacio el 7 de Feb. de 2013
Thanks, Matt! :)
Khac Dat Nguyen
Khac Dat Nguyen el 24 de Abr. de 2019
about string array? help me
Matt J
Matt J el 24 de Abr. de 2019
This works for any array.

Iniciar sesión para comentar.

Más respuestas (1)

Categorías

Productos

Preguntada:

el 7 de Feb. de 2013

Respondida:

el 29 de Dic. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by