MATLAB Answers

0

How to create an Array of vectors ??

Asked by Abanoub Ashraf on 18 Apr 2019
Latest activity Answered by madhan ravi
on 18 Apr 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 Comment

Either use a numeric matrix or a cell array containing numeric vectors.

Sign in to comment.

Products

1 Answer

Answer by madhan ravi
on 18 Apr 2019

Use a cell array as Stephen suggests:
v1=1:3; v2=2:9; v3=2; A={v1;v2;v3}

  0 Comments

Sign in to comment.