convert whole code to double

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 comentarios

Stephen23
Stephen23 el 13 de Sept. de 2018
Editada: Stephen23 el 13 de Sept. de 2018
"is it possible by anyway to convert whole code to double in a single step?"
No.
What class would expect the output of this to be?:
X = uint8(0)
KSSV
KSSV el 13 de Sept. de 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.

Iniciar sesión para comentar.

 Respuesta aceptada

Walter Roberson
Walter Roberson el 13 de Sept. de 2018

0 votos

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])

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

el 13 de Sept. de 2018

Respondida:

el 13 de Sept. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by