Combine vectors of different dimensions to a table

4 次查看(过去 30 天)
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