How to convert a cell array to a double array

2 次查看(过去 30 天)
I have computed the data in the cell as [3x1 cell] but actually i do not want this type of data all i need is to get the data in the form of [3x1 double]....I need to know is there any way to convert from cell to double array.. Any help is appreciated

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2015-6-7
编辑:Azzi Abdelmalek 2015-6-7
v={1;2 ;3}
out=cell2mat(v)
  5 个评论
Azzi Abdelmalek
Azzi Abdelmalek 2015-6-7
b={{{3 ;4}; {1}; {5}; {2}};{{1;2}; {2}; {2}; {4}}}
d= cellfun(@(y) cell2mat(cat(1,y{:})),b,'un',0)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by