Convert a cell array (each cell having different no. of elements) to matrix
8 ビュー (過去 30 日間)
古いコメントを表示
I want to convert a cell array of (7886 x 1 cell) to matrix (7886 x :) whose no. of row elements are not consistent and are of a type double. Can anyone help how to convert this, as cell2mat does not support inconsistent no. of elements
A = cell2mat(b);
Error:
Error using cat
Dimensions of arrays being concatenated are not consistent.
Error in cell2mat (line 83)
m{n} = cat(1,c{:,n});
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!