I wanted the matlab to show 5 places after the comma.

조회 수: 8 (최근 30일)
Luccas S.
Luccas S. 2021년 5월 5일
댓글: Luccas S. 2021년 5월 5일
I know this is possible with 'format long'. But I wanted to specifically limit it to 5, is there any way to do that?

채택된 답변

Ayham Aljawabrah
Ayham Aljawabrah 2021년 5월 5일
편집: Ayham Aljawabrah 2021년 5월 5일
Hello lucass!
Try, vpa
c=1/3
vpa(c,5)
  댓글 수: 1
Luccas S.
Luccas S. 2021년 5월 5일
It worked, but values ​​taken by the sqrt (x) function were left with 4 decimal places. Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by