convert decimal number to ratio
12 次查看(过去 30 天)
显示 更早的评论
Hello,
I would like to convert decimal number to ratios, when it is possible.
For example :
0.25 -> 1/4
1/2/3 -> 1/6
...
Some ideas ? Thank you
0 个评论
采纳的回答
Mischa Kim
2014-6-18
编辑:Mischa Kim
2014-6-18
Charly, use the rat command:
rat(1/2/3)
ans =
0 + 1/(6)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multirate Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!