Double to cell from workspace?
265 ビュー (過去 30 日間)
古いコメントを表示
i have a variable which is (2100*40 double) .i need to convert to each to a cell.the outpur as (2100*40 cell)
採用された回答
その他の回答 (2 件)
Mischa Kim
2014 年 3 月 14 日
編集済み: Mischa Kim
2014 年 3 月 14 日
A = [1 2 3; 4 5 6]; % numeric array
B = {A}; % cell array
C = mat2cell(A); % cell array
0 件のコメント
David Sanchez
2014 年 3 月 14 日
data = rand(3,5); % your data here
create cell with data
cell_data = num2cell(data);
you can also take a look at
mat2cell
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!