Skip to content

Instantly share code, notes, and snippets.

@zwrawr
Last active May 16, 2017 18:09
Show Gist options
  • Save zwrawr/2db3d48a059a9838f416697e23efa6c3 to your computer and use it in GitHub Desktop.
Save zwrawr/2db3d48a059a9838f416697e23efa6c3 to your computer and use it in GitHub Desktop.
Why doesn't this work !!!
% High Speed Electronics
% Cross talk sim eq
w = [1000 10000 100000 500000 1000000 5000000 10000000];
Vs = [20.2 20.2 20.4 21.0 21.0 21.2 22.0];
Vv = [0.012 0.144 1.4 5.6 8.16 10 10.9];
Ratio = Vv./Vs;
R = 10000;
Cs = 2.2e-12;
syms Cm Cg
Eq1 = (1j * w(2) * Cm * (R/2))/(1 + 1j * w(2) * Cm * (R/2) * (1 + (Cg + Cs)/Cm)) == Ratio(2);
Eq2 = (1j * w(4) * Cm * (R/2))/(1 + 1j * w(4) * Cm * (R/2) * (1 + (Cg + Cs)/Cm)) == Ratio(4);
sol = solve([Eq1, Eq2],[Cm Cg]);
m = double(abs(imag(sol.Cm)))
g = double(abs(imag(sol.Cg)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment