| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Symbolic Math Toolbox |
| Contents | Index |
| Learn more about Symbolic Math Toolbox |
[N,D] = numden(A)
[N,D] = numden(A) converts each element of A to a rational form where the numerator and denominator are relatively prime polynomials with integer coefficients. A is a symbolic or a numeric matrix. N is the symbolic matrix of numerators, and D is the symbolic matrix of denominators.
Find the numerator and denominator of the symbolic number:
[n, d] = numden(sym(4/5))
The result is:
n = 4 d = 5
Find the numerator and denominator of the symbolic expression:
syms x y; [n,d] = numden(x/y + y/x)
The result is:
n = x^2 + y^2 d = x*y
The statements
syms a b A = [a, 1/b] [n,d] = numden(A)
return
A = [a, 1/b] n = [a, 1] d = [1, b]
![]() | null | openmn | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |