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.
댓글 수: 1
채택된 답변
추가 답변 (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!