方法一:直接在commond窗口中输入format short你这个默认是format rat就是分数(有理数)表示形式。方法二:可以在file->preference->Fonts->commond Window 设置Numeric format我的是matlab2010a其他版本略有不同