Transfer function of a circuit in Matlab

AI Thread Summary
The discussion focuses on finding the transfer function I2/V1 for a specific circuit using MATLAB. The user shares their equations and attempts to solve them, but the results do not match the expected answer provided by their teacher. They define two equations based on circuit laws but encounter issues when calculating the transfer function. The user seeks assistance in identifying errors in their MATLAB code or equations. The thread highlights the challenges of circuit analysis and the importance of accurate coding in MATLAB for obtaining correct transfer functions.
XuFyaN
Messages
49
Reaction score
0

Homework Statement

What will be the transfer function in form of I2 / V1 of this circuit

http://img813.imageshack.us/img813/198/6…
2. The attempt at a solution

here is my coding but it shows incorrect answer,
>> syms I I2 R1 R2 V1 S c L
>> eq1 = I*R1 + L*S*(I-I2)-V1

eq1 =

I*R1 - V1 - L*S*(I2 - I)

>> eq2 = L*S*(I2-I)+I2*R2+I2/(c*S)

eq2 =

I2*R2 + I2/(S*c) + L*S*(I2 - I)

>> d = solve(eq1,V1)

d =

I*R1 - I2*L*S + I*L*S

>> e = solve(eq2,I2)

e =

(I*L*S)/(R2 + 1/(S*c) + L*S)
but after doing f=e/d it shows incorrect answer (the answer doesn't match with the one my teacher told)
 
Last edited by a moderator:
Physics news on Phys.org
There's a problem with that link.
 
The circuit is attached now, kindly have a look
 

Attachments

  • Untitled.png
    Untitled.png
    2.3 KB · Views: 506

Similar threads

Replies
26
Views
3K
Replies
4
Views
2K
Replies
18
Views
8K
Replies
1
Views
2K
Replies
1
Views
3K
Replies
10
Views
5K
Back
Top