フィルターのクリア

RLC Transfer Function Magnitude and Phase Response

10 ビュー (過去 30 日間)
1582251394
1582251394 2018 年 9 月 23 日
コメント済み: 1582251394 2018 年 9 月 23 日
Hi,
I am trying to plot the magnitude and phase response for a parallel RLC circuit. The curves look close to what it should be but for the magnitude response, it peaks at 1MHz and I was expecting 3.55MHz (angular frequency). Also, my phase response looks ok but I am unable to get the curve to rotate 180 degrees on its axis.
clc;
syms L C R w
pretty(abs(w.*j*L*R./(w.*L*j+1+j^2*w.^2*C*L*R)));
L = 2e-9;
C = 1e-6;
R = 500;
w = linspace(0.99e6,1.01e6,10000);
j=sqrt(-1);
subplot(2,1,1);
Z1 = abs(w.*j*L*R./(w.*L*j+1+j^2*w.^2*C*L*R));
plot(w,Z1);
subplot(2,1,2);
w = linspace(2*pi,-2*pi,10000);
Z2 = angle(w.*j*L*R./(w.*L*j+1+j^2*w.^2*C*L*R));
plot(w,Z2);

採用された回答

David Goodmanson
David Goodmanson 2018 年 9 月 23 日
Hi 2e9,
I don't know why you feel that the resonant circular frequency (w) should be 3.55e6 since 1/sqrt(L*C) = 2.24e7. The main problem is the expression for Z, which should be
(w.*j*L*R./(w.*L*j + R + j^2*w.^2*C*L*R))
^
There had to be something wrong since the original expression is not correct on units and dimensions. If you change the plot range to
w = linspace(22.3e6,22.4e6,10000);
the resonance is where it should be.
  1 件のコメント
1582251394
1582251394 2018 年 9 月 23 日
Thank you for noticing the mistake in the function. I originally had it in a different form and when I switched to this one, I forgot to add the R in the denominator. And for some reason, I was converting to frequency.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by