MATLAB Thevenin: Find Solution to Impedance Problem

  • Context: MATLAB 
  • Thread starter Thread starter studderbox
  • Start date Start date
  • Tags Tags
    Matlab Thevenin
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
studderbox
Messages
2
Reaction score
0
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
 
Physics news on Phys.org
Can you upload the circuit diagram