MATLAB Answers

0

what is wrong with my answer?

Asked by Kamran Salehi on 13 Oct 2018 at 20:34
Latest activity Edited by madhan ravi on 16 Oct 2018 at 1:27

question:Recall that the RC filter has transfer function: H(f) = . For frequencies ranging from f = - 200 KHz to 200 KHz, with R = 10 K W and C = 1 m F, plot the magnitude and phase angle for the transfer function, on one plot, with the left vertical axis showing H(f), and the right vertical axis showing the phase angle, in radians .

MY answer:

C=(1/10).^6; H=(1./(1+(j*2*f*R*C)));

>> plotyy(f,abs(H),f,angle(H)); grid;

>> R=10000;

>> f=[(-200)*10.^3: 50000: (200)*10.^3];

>> C=(1/10).^6; H=(1./(1+(j*2*f*R*C)));

>> plotyy(f,abs(H),f,angle(H)); grid; xlabel('frequency');

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by madhan ravi on 13 Oct 2018 at 20:39
Edited by madhan ravi on 14 Oct 2018 at 3:37
 Accepted Answer

Edited

C=(1/10).^6;
grid;
R=10000;
f=(-200)*10.^3: 50000: (200)*10.^3;
C=(1/10).^6; 
H=(1./(1+(j*2*f*R*C)));
H=((1./(1+(j*2*f*R*C))));
yyaxis left 
plot(f,abs(H))
hold on
yyaxis right
plot(f,angle(H))
xlabel('frequency');

  6 Comments

Check edited if it worked make sure to accept the answer

thank you

you’re welcome

Sign in to comment.