Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab Transfer Function

  1. Nov 20, 2007 #1

    I'm trying to enter this into matlab:

    G(s) = -1/((C1+C2)s)

    How can I enter this into matlab?

  2. jcsd
  3. Nov 22, 2007 #2
    Tranfer function

    If C1 and C2 are constants you can simply use tf() function.

    If they are parameters using ode45 functions and a little code will help.

  4. Nov 25, 2007 #3
    I can't seem to figure out how using the ode45 function will help me.
    I have 4 equations:
    G1 = sym('-1/((C1+C2)*s)')
    G2 = sym('-C2*s')
    G3 = sym('-1/(L2*s)')
    G4 = sym('-1/((C3+C2)*s)')
    G5 = sym('-1/(L4*s)')
    G6 = G2

    % Set up equations
    V1 = ((-V1) + (-I2) + (-V3)*G6 + Vin)*G1
    I2 = ((-V1) + (-V3))*G3
    V3 = ((I2) + (-V1)*G2 + (-Vout))*G4
    Vout = ((-V3) + (Vout))*G5

    V1, I2, V3, Vout and I need to solve for Vout/Vin. How can I do this using Matlab?

  5. Nov 25, 2007 #4
    Think I got it.

    Used the solve function.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Threads - Matlab Transfer Function Date
Matlab transfer function help Jan 26, 2012
Transfer function in matlab Jan 22, 2011
Help! plotting transfer function in matlab Oct 11, 2010
MATLAB transfer function question: Fundamentals Dec 17, 2009
Transfer Functions in MatLab Feb 7, 2008