convert whole code to double
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
D_coder
le 13 Sep 2018
Réponse apportée : Walter Roberson
le 13 Sep 2018
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 commentaires
KSSV
le 13 Sep 2018
If your input is double then the output and calculations will be in double. Any ways we can help more on knowing the code.
Réponse acceptée
Walter Roberson
le 13 Sep 2018
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!