MATLAB: Transfer function input format

transfer function

is there a way of writing transfer functions in the format (s+1)(s+2) instead of (s^2+3s+2)? thanks

Best Answer

Yes.
This works (in R2017b):
s = tf('s');
sys = (s+1)*(s+2)
sys =
s^2 + 3 s + 2
Continuous-time transfer function.
You have to supply the multiplication operator, or it will throw an error.