Matlab aula 16/02/2023 parte 2
This commit is contained in:
@@ -28,4 +28,28 @@ Tcla = feedback(series(Dcl, G), 1) %% Já cancela polos com zeros
|
|||||||
step(Tcla)
|
step(Tcla)
|
||||||
%% Zero no RHP
|
%% Zero no RHP
|
||||||
Tclb = tf([-3.4 3.4], [1, 2.4, 2.4, 1]) %% Tcla com sinal do zero trocado
|
Tclb = tf([-3.4 3.4], [1, 2.4, 2.4, 1]) %% Tcla com sinal do zero trocado
|
||||||
step(Tclb)
|
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)
|
||||||
Reference in New Issue
Block a user