symbolic fraction get num and den

syms x;
f = x^2 + 3*x + 2;
[num, den] = numden(f);
num
den