diff --git a/Aula_20230216.m b/Aula_20230216.m index f896833..6dc47b8 100644 --- a/Aula_20230216.m +++ b/Aula_20230216.m @@ -28,4 +28,28 @@ Tcla = feedback(series(Dcl, G), 1) %% Já cancela polos com zeros step(Tcla) %% Zero no RHP Tclb = tf([-3.4 3.4], [1, 2.4, 2.4, 1]) %% Tcla com sinal do zero trocado -step(Tclb) \ No newline at end of file +step(Tclb) +%% Sistema tipo 0 com entrada degrau +G = tf(1, [1 1]); +D=1; %% Controlador P +Tcl = feedback(series(D, G), 1); +step(Tcl) +%% Sistema tipo 0 com entrada rampa +G = tf(1, [1 1]); +D=1; %% Controlador P +Tcl = feedback(series(D, G), 1); +t = 0:0.1:5; %% Não tem função ramp() no Matlab +u = t; +lsim(Tcl, u, t) +%% Sistema tipo 1 com entrada degrau +G = tf(1, [1 1 0]); +D=1; %% Controlador P +Tcl = feedback(series(D, G), 1); +step(Tcl) +%% Sistema tipo 1 com entrada rampa +G = tf(1, [1 1 0]); +D=1; %% Controlador P +Tcl = feedback(series(D, G), 1); +t = 0:0.1:5; %% Não tem função ramp() no Matlab +u = t; +lsim(Tcl, u, t) \ No newline at end of file