Cell to double returns NaN

15 visualizzazioni (ultimi 30 giorni)
Aswas
Aswas il 18 Ott 2015
Risposto: Walter Roberson il 18 Ott 2015
I have a c={7 x 1 cell}, and used c1=str2double(c), but get NaN's any advice please.

Risposta accettata

Walter Roberson
Walter Roberson il 18 Ott 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);

Più risposte (0)

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by