Respuesta aceptada

Adam Danz
Adam Danz el 13 de Feb. de 2021
Editada: Adam Danz el 13 de Feb. de 2021

3 votos

Check your symbolic preferences.
sympref
ans = struct with fields:
FourierParameters: [1×2 sym] HeavisideAtOrigin: [1×1 sym] AbbreviateOutput: 1 TypesetOutput: 1 FloatingPointOutput: 0 PolynomialDisplayStyle: 'default' MatrixWithSquareBrackets: 0
If the FloatingPointOutput if true change it to false
sympref('FloatingPointOutput',true);
sym(1/3)
ans = 
0.3333
sympref('FloatingPointOutput',false);
sym(1/3)
ans = 

1 comentario

Adam Danz
Adam Danz el 13 de Feb. de 2021
Andrew Dabrowski's answer moved here as comment
Ah thanks, that was it!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 13 de Feb. de 2021

Comentada:

el 13 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by