- Why do you need these to all be in a single numeric matrix? What is it going to be used for after this?
- If you do get them in one numeric matrix, would you accept padding the vectors with zeroes or NaNs or some other "fill-in" value?
I have array with different length I would put them in one matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
I have different length arrays such as
t1=[1 2 1 2 3 4];
t2=[2 4 5 5 2 2 434 3 4 32 3 2];
t3= [3 4 5 2 1 1 1 2 3 4 4 4 44 5 5 5 6 3];
I would put them in one matrix as
t= [t1;t2;t3]
Is there anyway to do it ?
댓글 수: 1
Cam Salzberger
2019년 3월 14일
Two questions to clarify:
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!