TRANSER FUNCTION OF RC CIRCUIT WITH GIVEN VALUES

6 ビュー (過去 30 日間)
Allysa Mhay Santos
Allysa Mhay Santos 2020 年 3 月 11 日
回答済み: Star Strider 2020 年 3 月 11 日
disp('RLC Circuit')
%Specifications
R=1e3;
C=1e-6;
L=1e-3;
X=['Specifications: R=', num2str(R), 'ohm C=', num2str(C), 'F L=', num2str(L), 'H'];
disp(X);
b=1/(L*C);
a=R/L;
num=[b];
den=[1,a,b];
%Transfer Function
Hrlc = tf(num, den)
%Step Response
step(Hrlc)
%Frequency Response
bode(Hrlc)
WHAT TO DO NEXT?
I inserted a file that we need to comply, I dunno how to do the next instructions

回答 (1 件)

Star Strider
Star Strider 2020 年 3 月 11 日
I would use a for loop to change the component values and plot them. The instructions say to use the same set of axes (use the hold function), so it would be best to get the outputs from step and bode, and plot them, rather than using the plots created by step and bode when those functions do not have requested outputs. Those are explained in the documentation for those functions.

Community Treasure Hunt

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

Start Hunting!

Translated by