Skip to content

Instantly share code, notes, and snippets.

@bezborodow
Created December 1, 2020 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bezborodow/90c6e79e094ef1fbd8be98934cc15f5b to your computer and use it in GitHub Desktop.
Save bezborodow/90c6e79e094ef1fbd8be98934cc15f5b to your computer and use it in GitHub Desktop.
Matlab RLC Bandpass
fr = @(l, c) 1 / (2 * pi * sqrt(l*c) );
xl = @(l, c) 2 * pi * fr(l, c) * l;
xc = @(l, c) 1 / (2 * pi * fr(l, c) * c);
q = @(l, c, r) r / xl(l, c);
bw = @(l, c, r) fr(l, c) / q(l, c, r);
@bezborodow
Copy link
Author

bezborodow commented Dec 1, 2020

octave:11> r = 2.2e3;
octave:12> c = 22e-9;
octave:13> l = 47e-3;
octave:14> bw(l, c, r)
ans = 3288.3
octave:15> r = 10e3;
octave:16> bw(l, c, r)
ans = 723.43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment