Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Question about fractional values.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Risposte (1)
Andrei Bobrov
il 21 Set 2012
use Symbolic Math Toolbox
x = sym('5/3');
[N,D] = numden(x);
out = [N,1/D];
1 Commento
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!