Filter löschen
Filter löschen

How to convert cell to double ??

246 Ansichten (letzte 30 Tage)
Farman Shah
Farman Shah am 9 Okt. 2018
Kommentiert: Hideki Kawakatsu am 30 Mär. 2020
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 Kommentar
Guillaume
Guillaume am 9 Okt. 2018
The answer depends entirely on what is in the cells. Unfortunately, you haven't said.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Stephen23
Stephen23 am 9 Okt. 2018
Bearbeitet: Stephen23 am 9 Okt. 2018
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.

Weitere Antworten (1)

jonas
jonas am 9 Okt. 2018
Bearbeitet: jonas am 9 Okt. 2018
have you tried cell2mat?
or simply,
A = [C{:}]

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by