필터 지우기
필터 지우기

Large Ratios to decimal

조회 수: 9 (최근 30일)
Kenneth
Kenneth 2011년 4월 9일
I'm trying to plug in values into an equation but the output is giving me the answer in terms of large ratios instead of in decimal form. How do I tell Matlab to give me an answer in decimal format?

채택된 답변

Walter Roberson
Walter Roberson 2011년 4월 9일
If this is a purely numeric question, then Paulo's answer of changing your format is the one to look at.
If this is something computed using the symbolic toolbox, then use double() to convert the number to a MATLAB double precision number, or use vpa() to evaluate to a symbolic number with as many decimal places as you wish to see the answer to.
  댓글 수: 1
Kenneth
Kenneth 2011년 4월 9일
Yeah I was using the symbolic toolbox again, I forgot to mention that in my question. Thank you Walter!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Paulo Silva
Paulo Silva 2011년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by