How to isolate two variables, Vout and Vin to obtain transfer function
Show older comments
Hi this is my following code:
syms Vg Vin Vout Rs ro Rd CGS CGD CDB CL s gm;
eq1 = ((Vg-Vin)/Rs) + Vg*s*CGS + (Vg-Vout)*s*CGD == 0;
eq2 = gm*Vg + Vout/Rd + Vout/ro + Vout*s*CDB + Vout*s*CL + s*CGD*(Vout-Vg) == 0;
solVg = solve(eq2,Vg);
eq3 = ((solVg-Vin)/Rs) + solVg*s*CGS + (solVg-Vout)*s*CGD == 0;
So at this point, I have Vg in terms of, Vout and Vin. I'm having difficulty isolating the two variables, Vout and Vin to have the following transfer function: Vout/Vin.
Accepted Answer
More Answers (1)
Walter Roberson
on 21 Nov 2016
solVin = solve(eq3, Vin);
Vin_over_Vout = simplify( expand( SolVin/Vout ) );
2 Comments
Walter Roberson
on 22 Nov 2016
Opps, yes, I did Vin/Vout instead of Vout/Vin, but you can use
Vout_over_Vin = simplify( expand( Vout/SolVin ) );
1582251394
on 22 Nov 2016
Categories
Find more on MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!