How to convert an array into matrix of different sized cloumns
古いコメントを表示
i want to convert an array just like this suppose A is my array
A=[1 3 5 5 7 8 9 34 34 45 67 78 43 32 23] and i want to convert it into a matrix b which has random number of rows in each column(suppose n number of columns) b=[1 3 5 5 7; 8 9 ;34 34 45 67 78 43 32; 23]
採用された回答
その他の回答 (1 件)
Wayne King
2011 年 10 月 23 日
0 投票
Hi, you would have to do this as a cell array unless you were content to fill out the "missing" elements in the rows with NaN or zeros.
カテゴリ
ヘルプ センター および File Exchange で Interpolation of 2-D Selections in 3-D Grids についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!