# Transfer function of a circuit in Matlab

by XuFyaN
Tags: matlab, transfer function
P: 50
1. The problem statement, all variables and given/known data

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)
 P: 585 There's a problem with that link.
 P: 50 The circuit is attached now, kindly have a look Attached Thumbnails

 Related Discussions Math & Science Software 1 Engineering, Comp Sci, & Technology Homework 1 Math & Science Software 1 Engineering, Comp Sci, & Technology Homework 1 Math & Science Software 3