How to convert a cell array of different size to matrix of fixed size
4 次查看(过去 30 天)
显示 更早的评论
I have a cell array A of dimension 1x22 each cell having different number of elements with compulsory 2 columns. for example A{1,1}= [ 23 34; 44 55; 56 71; 63 49; 71 30]
A{1,2}= [12 13; 10 99] and so on. Now, I need a matrix which has maximum number of columns equal to 44(twice the number of cell array columns) and rows equal to the maximum number of columns of all the cells. Here, it is 5(from A{1,1}) NaN or 0 values do not matter in my case.
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!