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!