필터 지우기
필터 지우기

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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by