Large Ratios to decimal
9 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
採用された回答
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 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!