Arbitrary Symbols in MATLAB

Hello Everyone!

I've doing some MATLAB recently, specifically in signal analysis applications specifically transfer functions.

I'm using the tf function as follows:

Code:

`tf('s');`

H = (s+1)/(s^2+2*s+2);

Now this is working fine, what if I want to use arbitrary constants like we do in dsolve function. What do we do then?

I essentially want to add transfer functions like:

Code:

`H1 = (s+1)/(s^2+2*s+2);`

H2 = (a*s+b)/(s^2+2*s+2); % a and b are arbitrary constants

H = H1 + H2