How to convert cell to double ??

246 次查看(过去 30 天)
i have cell values of 1315x1 and i want to convert it to double.So far i tried but not getting the actual double values.
thanks in advance
  1 个评论
Guillaume
Guillaume 2018-10-9
The answer depends entirely on what is in the cells. Unfortunately, you haven't said.

请先登录,再进行评论。

采纳的回答

Stephen23
Stephen23 2018-10-9
编辑:Stephen23 2018-10-9
Another guess:
str2double
@Farman Shah: you have not told us what is in the cell array, so we have no idea what the data is, that needs to be converted into double or extracted into a double array. If you explain what your data is like, then we can help you get the answer that you need.

更多回答(1 个)

jonas
jonas 2018-10-9
编辑:jonas 2018-10-9
have you tried cell2mat?
or simply,
A = [C{:}]

类别

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