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

Thevenin using MATLAB

  1. Oct 23, 2011 #1
    Hello all, been a fan for a long time but finally joined to ask a question =P

    Solving Thevenin using MATLAB

    Problem is when i add in imaginary numbers

    ex: find Thevenin of circuit;
    current source xL and xC all in series.

    i get equations

    -i + xL(i1-i2) + xC(i1-i2) = 0
    xL(i2-i1) + xC(i2-i1) +/- 1 = 0

    inputting into matlab =>

    i= 0.96195 +.871557i
    xL = 1ki
    xC = -10ki

    f=[(1000i-10000i) (-1000i+10000i); (-1000i+10000i) (1000i-10000i)]
    c=[9.96195+.871557i; 1]
    v1=1
    is=f\c

    >> results in

    Warning: Matrix is singular to working precision.

    ans =

    NaN + NaNi
    NaN + NaNi
     
  2. jcsd
  3. Oct 25, 2011 #2
    Can you upload the circuit diagram
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Thevenin using MATLAB
Loading...