convert decimal number to ratio
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Mischa Kim
le 18 Juin 2014
Modifié(e) : Mischa Kim
le 18 Juin 2014
Charly, use the rat command:
rat(1/2/3)
ans =
0 + 1/(6)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Multirate Signal Processing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!