convert whole code to double
1 回表示 (過去 30 日間)
古いコメントを表示
is it possible by anyway to convert whole code to double in a single step? For operations such as sparse single format and integer format doesnt work so double format has to be used
2 件のコメント
KSSV
2018 年 9 月 13 日
If your input is double then the output and calculations will be in double. Any ways we can help more on knowing the code.
採用された回答
Walter Roberson
2018 年 9 月 13 日
No, it is not possible, as it would lead to errors because operations are not defined the same way on all of the data types. For example A([true, false]) is not the same as A([1,0])
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!