Conversion to double from sym is not possible

2 views (last 30 days)
My problem is I want to find the transfer function of a characteristic equation, then take the inverse laplace of it to get y(t)= blah. Once I have y(t) I want to graph, but I get the "Conversion to double from sym is not possible." error
%RC Circuit Lowpass Filter (voltage across capacitor)
%Resistance (Ohms), Capacitance (Farads) inputs R=100*10^3; C=100*10^-6;
%Voltage value of input A=5;
%System transfer function syms s trans=A/(R*C*s+1)
%Equation eq=ilaplace(trans)
%Time Domain Graph values for copying to Excel time=0:0.1:100; figure(1) plot(time,eq) hold on

Answers (1)

Star Strider
Star Strider on 16 Apr 2015
In the Symbolic Math Toolbox, it’s more convenient to use ezplot. Replace your plot call with:
ezplot(eq, [0, 100])

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!