Professional Documents
Culture Documents
num =
Columns 1 through 6
0 0 0 0 0 0
Columns 7 through 9
0 0 1
den =
1.0000 0.9260
x=
Columns 1 through 6
0 1 1 1 1 1
Columns 7 through 12
1 1 1 1 1 1
Columns 13 through 18
1 1 1 1 1 1
Columns 19 through 24
1 1 1 1 1 1
Columns 25 through 30
1 1 1 1 1 1
Columns 31 through 36
1 1 1 1 1 1
Columns 37 through 42
1 1 1 1 1 1
Columns 43 through 48
1 1 1 1 1 1
Columns 49 through 54
1 1 1 1 1 1
Columns 55 through 60
1 1 1 1 1 1
Column 61
>> k=0:60;
>> y=filter(num,den,x);
>> plot(k,y,'-',k,x,' ')
>> grid
>> xlabel(' k ')
>> ylabel('y(k)')
>>
DISEÑO BASADO EN EL METODO DE RAICES
close all
clear all
clc
Gz=tf([0 0 0 0 0 0 0 0 1],[1 0.926],-1) %definición bloque directo
Hz=1
%Hz=tf(1,[1 0.5],-1) %definición bloque realimentación
rlocus(Gz*Hz) %obtención lugar de las raíces figura 1
xlabel('eje real')
ylabel('eje imaginario')
title ('lugar de las raices')
axis([-1.5 1.5 -1.5 1.5]) %escalado de ejes
Mz=feedback(Gz,Hz) %sistema realimentado
polos=pole(Mz) %comprobación de estabilidad
abs(polos) %comprobación módulo mayor Igual a 1
figure % figura 2
pzmap(Mz) %plano de polos y ceros
axis([-1.5 1.5 -1.5 1.5]) %escalado de ejes
xlabel('eje real')
ylabel('eje imaginario')
title ('plano de polos y ceros')
figure % figura 3
step(Mz) % comprobación respuesta
xlabel('k*t')
ylabel('Amplitud')
title('respuesta escalón unitario')