Any way to force Command Window Answers to print Fractions?

20 Ansichten (letzte 30 Tage)
Clark
Clark am 6 Nov. 2012
Kommentiert: pavan teja am 31 Okt. 2022
Is there any way to change the format of all numbers in the answers of the command window to be displayed as fractions rather than decimals? Thanks!
  1 Kommentar
pavan teja
pavan teja am 31 Okt. 2022
setup the vector calle 'N' with 5 elements having 1,2,3,4,5 using 'N' create assignment for x
1/2,1,3/2,2

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Brian B
Brian B am 6 Nov. 2012
Bearbeitet: Brian B am 6 Nov. 2012
Try
format rat
-Brian

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB 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