MATLAB: Finding the Transfer Function of resonance system MATLAB and Simulink Student Suitetransfer function How can I obtain a transfer function of uout(t) and uin(t) ? Is there any way to find it using MATLAB/Simulink ? This is the circuit : http://postimg.org/image/s55tksoar/ Any help would be appreciated. Thanks! Best Answer If you have the Symboli cMath Toolbox, the analysis of that circuit is straightforward:syms R1 Ramp L C vi vo f t AiR1 = (vi - vo)/R1;iL = vo/s*L;iC = vo*s*C;iRa = vo/Ramp;Node1 = iR1 == (iL + iC + iRa);vo = solve(Node1, vo);H = simplify(collect(vo/vi, s), 'steps',10)Hsub = vpa(subs(H, {R1, L, C}, {60E+3, 2E-3, 5.3E-12}), 6) % Transfer FunctionH =(Ramp*s)/(C*R1*Ramp*s^2 + (R1 + Ramp)*s + L*R1*Ramp)Hsub =(Ramp*s)/(3.18e-7*Ramp*s^2 + (Ramp + 60000.0)*s + 120.0*Ramp)Without knowing what ‘Ramp’ is, a plot is impossible.Note that:Vin = A*cos(2*pi*f*t);so to solve for the output voltage given the input voltage, you have to take the Laplace transform of ‘Vin’ and substitute it in the ‘Node1’ equation:Node1 = iR1 == (iL + iC + iRa);Vins = laplace(A*cos(2*pi*f*t)); % Laplace Transform Of ‘Vin’Node1 = subs(Node1, {R1, L, C, vi}, {60E+3, 2E-3, 5.3E-12, Vins}); % Substitute Component Values & ‘Vin’Vout = solve(Node1, vo);Vout = vpa(collect(Vout.vo, s), 6) % VoutVout =(3.86856e25*A*Ramp*s^2)/(s*(1.52725e27*Ramp*f^2 + 9.16348e31*f^2) + 1.8327e29*Ramp*f^2 + 1.2302e19*Ramp*s^4 + s^2*(4.85665e20*Ramp*f^2 + 4.64228e27*Ramp) + s^3*(3.86856e25*Ramp + 2.32114e30)) Related SolutionsMATLAB: How to isolate two variables, Vout and Vin to obtain transfer function You need to solve for ‘Vout’ first, then divide that expression by ‘Vin’:Vout = solve(eq3, Vout);H = Vout/Vin[Hn, Hd] = numden(H);Hn = collect(Hn, s)Hd = collect(Hd, s)with ‘H’ being your transfer function, ‘Hn’ is the numerator, ‘Hd’ the denominator:H =-1/(Rs*(CGD*s*((CDB*s + CGD*s + CL*s + 1/Rd + 1/ro)/(gm - CGD*s) + 1) + (CDB*s + CGD*s + CL*s + 1/Rd + 1/ro)/(Rs*(gm - CGD*s)) + (CGS*s*(CDB*s + CGD*s + CL*s + 1/Rd + 1/ro))/(gm - CGD*s)))Hn =(CGD*Rd*ro)*s - Rd*gm*roHd =(CDB*CGD*Rd*Rs*ro + CDB*CGS*Rd*Rs*ro + CGD*CGS*Rd*Rs*ro + CGD*CL*Rd*Rs*ro + CGS*CL*Rd*Rs*ro)*s^2 + (CGD*Rd*Rs + CGS*Rd*Rs + CDB*Rd*ro + CGD*Rd*ro + CL*Rd*ro + CGD*Rs*ro + CGS*Rs*ro + CGD*Rd*Rs*gm*ro)*s + Rd + ro MATLAB: Solve() gives Empty sym: 0-by-1 Why not just solve eqn3, it is enough to give expression of Vosol = solve(eqn3, Vo);Result>> solsol =(Vx - Vy)/(2*C*L*s^2 + 1)If you want to eliminate Vx and Vy from the solution then try thissol = solve([eqn1, eqn2, eqn3], [Vo Vx Vy]);Result>> sol.Voans =(R*Vin)/(R + Rp + 2*C*L*R*s^2 + 2*C*L*Rp*s^2 + 2*C*R*Rp*s)Also find the transfer function>> sol.Vo/Vinans =R/(R + Rp + 2*C*L*R*s^2 + 2*C*L*Rp*s^2 + 2*C*R*Rp*s) Related QuestionHow solve two symbolic non-linear equations
Best Answer