Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Question about fractional values.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is there a way where i can separate a whole number from a fraction for example (5/3), is there a way to make it (5)(1/3)?
1 commentaire
Réponses (1)
Andrei Bobrov
le 21 Sep 2012
use Symbolic Math Toolbox
x = sym('5/3');
[N,D] = numden(x);
out = [N,1/D];
1 commentaire
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!