Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
Luccas S.
Luccas S. am 5 Mai 2021
Kommentiert: Luccas S. am 5 Mai 2021
I know this is possible with 'format long'. But I wanted to specifically limit it to 5, is there any way to do that?

Akzeptierte Antwort

Ayham Aljawabrah
Ayham Aljawabrah am 5 Mai 2021
Bearbeitet: Ayham Aljawabrah am 5 Mai 2021
Hello lucass!
Try, vpa
c=1/3
vpa(c,5)
  1 Kommentar
Luccas S.
Luccas S. am 5 Mai 2021
It worked, but values ​​taken by the sqrt (x) function were left with 4 decimal places. Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Graphics Object Properties finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by