Cell to double returns NaN

14 views (last 30 days)
Aswas
Aswas on 18 Oct 2015
Answered: Walter Roberson on 18 Oct 2015
I have a c={7 x 1 cell}, and used c1=str2double(c), but get NaN's any advice please.

Accepted Answer

Walter Roberson
Walter Roberson on 18 Oct 2015
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);

More Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!