How to convert cell into mat by single command?
조회 수: 2 (최근 30일)
이전 댓글 표시
[1x9 double] [1x8 double] [1x7 double]
Columns 4 through 6
[1x6 double] [1x5 double] [1x4 double]
Columns 7 through 9
[1x3 double] [1x2 double] [1x0x0 double]
I have to use these values in loop.
i want it as out(:,:,:) format.
댓글 수: 0
답변 (1개)
Guillaume
2016년 2월 5일
Since all the vectors in your cell array have all different numbers of columns but just one row, the only matrix you can put them all together is a row vector, which you'd achieve with
rowvector = [yourcellarray{:}]
There is no way to concatenate the vectors in a 3d matrix unless you first add or remove elements in these vectors so they're all the same size.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!