How to create an Array of vectors ??

9 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2019-4-18
Either use a numeric matrix or a cell array containing numeric vectors.

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by