Borrar filtros
Borrar filtros

Cell to double returns NaN

11 visualizaciones (últimos 30 días)
Aswas
Aswas el 18 de Oct. de 2015
Respondida: Walter Roberson el 18 de Oct. de 2015
I have a c={7 x 1 cell}, and used c1=str2double(c), but get NaN's any advice please.

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Oct. de 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);

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by