채택된 답변

Adam Danz
Adam Danz 2021년 2월 13일
편집: Adam Danz 2021년 2월 13일

3 개 추천

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

Adam Danz
Adam Danz 2021년 2월 13일
Andrew Dabrowski's answer moved here as comment
Ah thanks, that was it!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

태그

질문:

2021년 2월 13일

댓글:

2021년 2월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by