how to get the T.F of analog RLC network by simulink matlab??

Discussion in 'Programmer's Corner' started by grandure, Sep 28, 2010.

  1. grandure

    Thread Starter New Member

    Sep 28, 2010
    2
    0
    Dear all,
    <the RLC network as attached>
    I have an RLC ckt network and i'm trying to get the T.F by using matlab. All what i could think of is to write the nodal analysis equations and to solve for out/input. But even me trying that i couldn't succeed in conducting a correct software representation on matlab.Firstly, I need someone to help me out in solving the following equations in term of v2/v1 by using matlab.

    vx*(2+s))-(v1*1)-(vy*s)-v2=0
    vy*((2*s)+1)-vx*s-v2*s=0
    C='v2*(s+2)-vy*s-vx=0
    where i did some reading and surfing internet material to ended up non-executive mat-lab program as follow
    clear all;
    close all;
    clc;
    syms, ('v2 v1 vx vy s');
    A ='(vx*(2+s))-(v1*1)-(vy*s)-v2=0';
    B='vy*((2*s)+1)-vx*s-v2*s=0';
    C='v2*(s+2)-vy*s-vx=0';
    [v2 vx]= solve('A''B''C','v2''vx');
    and finally, i need someone to help me in finding other way to solve the T.F for analog electrical ckt with simulink. Hence i already represented the circuit in simulink but i couldn't reach to the T.F

    Note:- i did the SFG for this ckt and i got the T.F=v2/v1= ((s^2)+2s+1)/(s^2+5s+2), but i still need to know how to do it in matlab where i have more complex circuits and huge networks.

    thank you
     
Loading...