How to create an Array of vectors ??

7 visualizaciones (últimos 30 días)
Abanoub Ashraf
Abanoub Ashraf el 18 de Abr. de 2019
Respondida: madhan ravi el 18 de Abr. de 2019
I want to create an array of vectors.
ex: A = 0 0 0 0 0 0 0....
0 0 0 0 0 0 0....
0 0 0 0 0 0 0....
array of size 3 but each vector is of unknown size !!
matrix of ( 3 , increasable size)
  1 comentario
Stephen23
Stephen23 el 18 de Abr. de 2019
Either use a numeric matrix or a cell array containing numeric vectors.

Iniciar sesión para comentar.

Respuestas (1)

madhan ravi
madhan ravi el 18 de Abr. de 2019
Use a cell array as Stephen suggests:
v1=1:3; v2=2:9; v3=2; A={v1;v2;v3}

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by