How to convert cell to double ??

280 ビュー (過去 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{:}]
  1 件のコメント
Hideki Kawakatsu
Hideki Kawakatsu 2020 年 3 月 30 日
great

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by