How to create an Array of vectors ??

조회 수: 7 (최근 30일)
Abanoub Ashraf
Abanoub Ashraf 2019년 4월 18일
답변: madhan ravi 2019년 4월 18일
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