Any way to force Command Window Answers to print Fractions?

20 次查看(过去 30 天)
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 个评论
pavan teja
pavan teja 2022-10-31
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

请先登录,再进行评论。

采纳的回答

Brian B
Brian B 2012-11-6
编辑:Brian B 2012-11-6
Try
format rat
-Brian

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by