Está en la página 1de 3

PRACTICA 7

MODELO MATLAB:

>> zpk(amx1100)

Zero/pole/gain from input "u1" to output "y1":


276.437 z
---------(z-0.6635)

Zero/pole/gain from input "v@y1" to output "y1":


86.8048 z
---------(z-0.6635)

Input groups:
Name

Channels

Measured

Noise

Sampling time: 0.1


>> zpk(amx2100)

Zero/pole/gain from input "u1" to output "y1":


229.6936 z^2
----------------------(z^2 - 1.054z + 0.3349)

Zero/pole/gain from input "v@y1" to output "y1":


75.4546 z^2
----------------------(z^2 - 1.054z + 0.3349)

Input groups:
Name

Channels

Measured
Noise

1
2

Sampling time: 0.1


DE LAS CUALES USAREMOS:
MODELO PRIMER ORDEN:
276.437 z

---------(z-0.6635)
MODELO SEGUNDO ORDEN:
75.4546 z^2
----------------------(z^2 - 1.054z + 0.3349)

CODIGO .M;

z=tf('z',0.1)
g=276.437*z/(z-0.6635)
g1=75.4546*(z^2)/(z^2-1.054*z+0.3349)
t=0:0.01:2*pi;
y=sin(t);
a= input('Ingrese el orden del modelo: ')
if a==1
c=g
else
c=g1
end
r=input('ingrese el tipo de respuesta(1) para paso (2) para seno: ')
if r==1
step(c)
else
lsim(c,y,t)
end

También podría gustarte