convert cell array to matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a cell array of size 544 1 , how can I convert it to a matrix of dimension 151*101 without nan appear in the matrix?
댓글 수: 1
John D'Errico
2014년 12월 10일
Um, magic?
You give us no hint at all what is in those cells. So how can we possibly know how to convert it into an array of totally different size and shape?
채택된 답변
Star Strider
2014년 12월 10일
I doubt if you can.
A matrix of size (151x101) has 15251 elements. Your vector has 544 elements. You have to fill the extra 14707 elements with something, and NaN is probably the best option.
댓글 수: 4
추가 답변 (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!