How to convert cell to double ??

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 comentario

Guillaume
Guillaume el 9 de Oct. de 2018
The answer depends entirely on what is in the cells. Unfortunately, you haven't said.

Iniciar sesión para comentar.

 Respuesta aceptada

Stephen23
Stephen23 el 9 de Oct. de 2018
Editada: Stephen23 el 9 de Oct. de 2018

0 votos

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.

Más respuestas (1)

jonas
jonas el 9 de Oct. de 2018
Editada: jonas el 9 de Oct. de 2018

3 votos

have you tried cell2mat?
or simply,
A = [C{:}]

Categorías

Más información sobre Data Type Conversion en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 9 de Oct. de 2018

Comentada:

el 30 de Mzo. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by