Professional Documents
Culture Documents
SEALES Y SISTEMAS
GRUPO: 203042-64
PRESENTADO POR:
LINA ANGELICA MENESES ESPINOSA
CDIGO: 1.061.785.616
SEALES Y SISTEMAS
SESIN 2 (PRACTICA)
Procedimiento:
clc
clear all;
close all;
tmax=5;
N=500;
t=0:tmax./N:(tmax - tmax./N);
A=1;
w=4*pi;
y=exp(-t);
x=exp(-2*t);
tn=0:tmax./N:2*(tmax - tmax./N);
z=conv(y,x);
hold on
plot(tn,z*tmax./N,'g');
l=exp(-tn)-exp(-2*tn);
plot(tn,l,'r');
grid;
hold off
Realice ahora las siguientes pruebas al variar tmax de acuerdo a la siguiente tabla:
prueba tmax
1 3
2 2
3 1
4 0.5
% Definicion de la seal
t=-0.25:0.001:0.25;
x=3*sin(2*50*t)-2*cos(2*pi*200*t);
% Representacion en el tiempo
subplot(3,1,1);
plot(t,x);
title('x(t)=exp(-2t)sin(2pi200t)');
xlabel('Tiempo (t)');ylabel('x(t)');
% Transformada de Fourier
X=fftshift(fft(x));
% Magnitud y fase de la transformada
Xm=abs(X);
Xf=unwrap(angle(X))*180/pi;
% Base de frecuencias
delta_t = t(2)-t(1);
f = ((1:length(t)) - ceil(length(t)/2)) / length(t) / delta_t;
% Representacion en frecuencia
subplot(3,1,2);
plot(f,Xm,'r');
title('Mdulo de transformada de Fourier de x(t)');
xlabel('frecuencia (Hz)');ylabel('|X(jw)|');
subplot(3,1,3);
plot(f,Xf,'r');zoom;
title('fase de la transformada de Fourier de x(t))');
xlabel('frecuencia (Hz)');ylabel('fase X(jw)');
seal Funcin
1
{ }
0 para 0<t
x ( t )= 1 para 0 t 1
0 para t >1
0.2 t
2 x ( t )=e cos ( 10 t)
3
{ }
0 para 0<t
2t para 0 t 1
x ( t )=
42 t para 1<t<2
0 para t >0
Seal 1:
Seal 2:
Seal 3:
p
clc
clear all;
close all;
s=tf('s');
Gp1=10/((s+0.01)*(s+5));
impulse(Gp1);
bode(Gp1);
step(Gp1);
z=tf('z',1);
T=3.4/(z^2.+z+0.5);
step(T,20);
Funcin de transferencia 1:
Funcin de transferencia 2:
Respuesta paso de G(Z)
Funcin de transferencia 3:
Diagrama de Bode para el sistema G1(S)*G2(s)
{ }
0 para 0<t
sistema es : x ( t )= 1 para 0 t 10
0 para t >10
clc
clear all;
close all;
t=-1:0.01:11;
% Entrada al sistema:
% Respuesta al la seal impulso conocida:
I=exp(-10*t)+exp(-2*t);
subplot(2,2,1)
plot(t,I);
% Creacin de titulos
title('Rspuesta impulso h(t)');
grid;
X=(t<0).*0+((t>=0)&(t>=10)).*10 + (t>10).*0;
subplot(2,2,2)
plot(t,X);
grid;
% Creacin de titulos
title('Entrada al sistema x(t) ');
conv(I,X);
subplot(2,2,3)
plot(conv(I,X));
% Creacin de titulos
title('Respuesta en estado estable ');
grid;