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 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!