convert decimal number to ratio
8 ビュー (過去 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!