(RLC sample revisited):

Recall the ABCD parameter in Matlab by using the tf LTI objects,
There is a definite disadvantage of the above procedure. It require, beforehand, knowledge of the constant values for R, L and C. This is unacceptable where a "generic" result is wanted.
Here the Symbolic MATLAB really shine. We tell Matlab our symbolic expressions as follow,
V01 =
1/(1+(s*L+R)*s*C)
Lets clean this up by using the expand function,
h =
1/(1+s^2*C*L+s*C*R)
Notice there is no mention about what values we must use for R, L and C. The transfer function
V0 / V1 is in fact given in terms of R, L and C. Now lets try some fix values and ask Matlab to eval uate them.
g =
1/(1+s^2+s)
g =
1/(1+4*s^2+2*s)
A specific, vL / vS, m-script was shown before as,
Now for a "generic" script version we use,
To see the step response of a Match terminated line we introduce,
(REMARK): This symbolic source code for the delay-line, DO NOT WORK in the student version. Matlab symbolic processing efficiency is disappointingly VERY SLOW and require too much resources.
Let us use For Loop and execute the script for Mountain Bike Suspension for damping constant of b=1 and 2, and merge the two plots into one graph.
The script is,
%ss2tf3.m for b=1:2 A=[0,1,0; -3,0,2; 2/b,0,-2/b]; B=[0;1;0]; C=[1,0,0]; D=0; sys = ss(A,B,C,D); step(tf(sys)); hold ; end
The result,
