Вы находитесь на странице: 1из 4

Santiago Andres Vergara Hernandez Código: 2151089

DISCRETIZACION DE SISTEMAS EN ESPACIO DE ESTADOS

Solución ejercicio

- Se realizó la discretización del sistema


- Se implementó la siguiente función en Matlab
function [Respuesta] = solucion(h)
A = [cos(h) -sin(h); sin(h) cos(h)];
B = [cos(h)-1; sin(h)];
C = [1 0];
x = zeros(2,1);
Y = zeros(2,1);

T = (2*pi)/h;

for k = 1:T
x = A*x + B;
y = C*x;
Respuesta(k) = y;
end

subplot(2,1,1);
plot(1:T,Respuesta,'r')
xlabel('K')
ylabel('Y')

subplot(2,1,2);
stem(Respuesta,'g')
xlabel('K')
ylabel('Y')

grid on

end

- Usando h = pi/4, se obtuvieron las siguientes imagines en tiempo discreto y en tiempo


continuo

- Usando h = pi/8, se obtuvieron las siguientes imagines en tiempo discreto y en tiempo


continuo

Вам также может понравиться