How to convert cell to double ??

조회 수: 109 (최근 30일)
Farman Shah
Farman Shah 2018년 10월 9일
댓글: Hideki Kawakatsu 2020년 3월 30일
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
Guillaume
Guillaume 2018년 10월 9일
The answer depends entirely on what is in the cells. Unfortunately, you haven't said.

댓글을 달려면 로그인하십시오.

채택된 답변

Stephen23
Stephen23 2018년 10월 9일
편집: Stephen23 2018년 10월 9일
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.

추가 답변 (1개)

jonas
jonas 2018년 10월 9일
편집: jonas 2018년 10월 9일
have you tried cell2mat?
or simply,
A = [C{:}]

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by