필터 지우기
필터 지우기

Combine vectors of different dimensions to a table

조회 수: 1 (최근 30일)
Shashank Bhatia
Shashank Bhatia 2019년 11월 9일
댓글: Shashank Bhatia 2019년 11월 13일
Dear Mathworks Community,
I have 380 vectors each with same column (1) but with little different number of rows e.g. 18000*1 or 18001*1 or 17999*1.
How to combine all into table?
I tried T=table(APP,PSS,TSS,VUU,...,....,.... ...);
But error:
All variables must have the same number of rows.
Looking various ways to combine them.
Help much appreciated.
Thanks

답변 (1개)

Nikhil Sonavane
Nikhil Sonavane 2019년 11월 12일
You can try padding the arrays with 0 or NaN so that all arrays are of same size and the combine them as required
  댓글 수: 1
Shashank Bhatia
Shashank Bhatia 2019년 11월 13일
Thanks Nikhil for suggestion. Do you mean to suggest create table with 0 or NaN of row*column 18001*380 and then fill the table whereever entries are?
Can you suggest the code?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by