Any way to force Command Window Answers to print Fractions?

17 views (last 30 days)
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 Comment
pavan teja
pavan teja on 31 Oct 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

Sign in to comment.

Accepted Answer

Brian B
Brian B on 6 Nov 2012
Edited: Brian B on 6 Nov 2012
Try
format rat
-Brian

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!