필터 지우기
필터 지우기

Any way to force Command Window Answers to print Fractions?

조회 수: 11 (최근 30일)
Clark
Clark 2012년 11월 6일
댓글: pavan teja 2022년 10월 31일
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에서 Code Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by