Question about fractional values.
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
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 comentario
Matt Fig
el 21 de Sept. de 2012
Do you have strings or what?
S = '(5/3)' % Like this?
Respuestas (1)
Andrei Bobrov
el 21 de Sept. de 2012
use Symbolic Math Toolbox
x = sym('5/3');
[N,D] = numden(x);
out = [N,1/D];
1 comentario
Portgas Ace
el 21 de Sept. de 2012
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!