Conversion to double from cell is not possible.
古いコメントを表示
Hi there, I am new in MATLAB and I have this problem "Conversion to double from cell is not possible", I uploaded a matrix with readtable and I delimited with (;). Then It made a matrix of 10200x3, in the third column I have values with "comma" decimal (25,7). I used str2double to change from cell array to double array, but the new value is (257). I would like to get the same value (25,7). Somebody could help me please.
2 件のコメント
madhan ravi
2020 年 7 月 8 日
Mind sharing a screenshot/file of that table ?
Fabian Moreno
2020 年 7 月 8 日
採用された回答
その他の回答 (1 件)
Fabian Moreno
2020 年 7 月 8 日
0 投票
6 件のコメント
Adam Danz
2020 年 7 月 9 日
The zeros should go away after you convert to double. How are you doing that conversion? If your original question has been answered, please consider accepting the answer.
Fabian Moreno
2020 年 7 月 9 日
Adam Danz
2020 年 7 月 9 日
Now I'm confused. I thought " Hi Adam, I did it. Thank you a lot :)" meant that the problem was solved.
The problem with the trailing 0s is a new problem.
The trailing 0s is likely a formatting issue.
Fabian Moreno
2020 年 7 月 9 日
madhan ravi
2020 年 7 月 9 日
xD
Adam Danz
2020 年 7 月 10 日
Glad I could help! :)
カテゴリ
ヘルプ センター および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
