Any way to force Command Window Answers to print Fractions?

10 vues (au cours des 30 derniers jours)
Clark
Clark le 6 Nov 2012
Commenté : pavan teja le 31 Oct 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 commentaire
pavan teja
pavan teja le 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

Connectez-vous pour commenter.

Réponse acceptée

Brian B
Brian B le 6 Nov 2012
Modifié(e) : Brian B le 6 Nov 2012
Try
format rat
-Brian

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by