Cell to double returns NaN

12 次查看(过去 30 天)
I have a c={7 x 1 cell}, and used c1=str2double(c), but get NaN's any advice please.

采纳的回答

Walter Roberson
Walter Roberson 2015-10-18
If the contents of the cell are already numeric and the task is to convert from a cell array to a purely numeric array, then
c1 = cell2mat(c);

更多回答(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