MATLAB: How to convert a transfer fuction (tf class) to a symbolic equation (sym)

controlstransfer function

I have a transfer function that I need in symbolic form but I haven't been able to find a way of doing this. This is what I have:
EQN =
6
-----------
s^3 + 2 s^2
Continuous-time transfer function.
This is what I need:
eqn = 6/(s^3 + 2*s^2)
Any ideas?

Best Answer

Never mind I figured it out, but to those who want to know:
sys = tf([1 0],[1 2 3])
[Num,Den] = tfdata(sys);
sys_syms = poly2sym(cell2mat(Num),s)/poly2sym(cell2mat(Den),s)
Credit goes to:
Related Question