Vous êtes sur la page 1sur 7

INFORME 2

1. Si se tiene la señal x(t) que se muestra en la figura 1.


Graficar las siguientes señales en el intervalo -13 < t < 13

t= -13:0.01:13;
f= ((t>=-2) & (t<-1)).*(t+1) + ((t>=-1) & (t<0)).*(1) + ((t>=0)&(t<1)).*(1-t);
plot(t,f);
axis([-2.5 1.5 -1.5 1.5]);
xlabel('t');
ylabel('x(t)');
a. x(t - 1)

t= [-13:0.01:13];
f= ((t-1>=-2)&(t-1<-1)).*(t-1+1)+((t-1>=-1)&(t-1<0)).*(1)+((t-1>=0)&(t-1<1)).*(1-(t-
1));

plot(t,f);
axis([-13 13 -2.5 2]);
xlabel('t');
ylabel('x(t-1)');

b. x(2 - t)

t= [-13:0.01:13];
f= ((2-t>=-2)&(2-t<-1)).*(2-t+1)+((2-t>=-
1)&(2-t<0)).*(1)+((2-t>=0)&(2-t<1)).*(1-
(2-t));

plot(t,f);
axis([-13 13 -2.5 2]);
xlabel('t');
ylabel('x(2-t)');

c. x(2t + 1)

t= [-13:0.01:13];
a= 2*t+1

f= ((a>=-2)&(a<-1)).*(a+1)+((a>=-
1)&(a<0)).*(1)+((a>=0)&(a<1)).*(1-a);

plot(t,f);
axis([-3 3 -2.5 2]);
xlabel('t');
ylabel('x(2t+1)');
d. x(4 - t/2)

t= [-13:0.01:13];
f= (((4-t/2)>=-2)&((4-t/2)<-1)).*((4-
t/2)+1)+(((4-t/2)>=-1)&((4-
t/2)<0)).*(1)+(((4-t/2)>=0)&((4-t/2)<1)).*(1-
(4-t/2));

plot(t,f);
axis([-13 13 -2 2]);
xlabel('t');
ylabel('x(4-t/2)');

e. 2x(t + 3)

t= -13:0.01:13;
a= t+3
f= ((a>=-2)&(a<-1)).*(a+1)+((a>=-
1)&(a<0)).*(1)+((a>=0)&(a<1)).*(1-a);

plot(t,2*f);
axis([-13 13 -3 3]);
xlabel('t');
ylabel('2x(t + 3)');

f. [x(t) +x(-t)] u(t)

t= -13:1:13;
f= ((t>=-2)&(t<-1)).*(t+1)+((t>=-1)&(t<0)).*(1)+((t>=0)&(t<1)).*(1-t);

a=-t;
g= ((a>=-2)&(a<-1)).*(a+1)+((a>=-
1)&(a<0)).*(1)+((a>=0)&(a<1)).*(1-a);

u=[zeros(1,13),ones(1,14)];

M= (f+g).*u;
plot(t,M);
axis([-13 13 -4 4]);
xlabel('t');
ylabel('[x(t) +x(-t)] u(t)');
g. x(t)* δ(t-0.5)

t = -12.5:13.5;
a=t-0.5;
f= ((a>=-2)&(a<=-1)).*(a+1)+((a>-
1)&(a<0)).*(1)+((a>=0)&(a<1)).*(1-a);
delta =[zeros( 1 ,13 ), 1 , zeros( 1 ,13 ) ];
M= f.*delta;
plot(t,M);
axis([-13 13 -1 1.5]);

h. x(t)[ u(t + 1) - δ(t-0.5)]

t = -12.5:13.5;
x= ((t>=-2)&(t<-1)).*(t+1)+((t>=-
1)&(t<0)).*(1)+((t>=0)&(t<1)).*(1-t);

a=t-0.5;
f= ((a>=-2)&(a<=-1)).*(a+1)+((a>-1)&(a<0)).*(1)+((a>=0)&(a<1)).*(1-a);
delta =[zeros( 1 ,13 ), 1 , zeros( 1 ,13 ) ];
M= f.*delta;

y = zeros (1, length(t)); % Comienza anulando la función


A = 1; % Amplitud
T = 1; % Tiempo de discontinuidad
% Rango de valores de t para los que la función no es nula
rango = find (t >= T);
y(rango) = A; % Valor de la función en el rango de tiempo no nulo

M= x.*(y-delta);
subplot (2, 2, 1);
plot(t,M);
xlabel ('t', 'FontName', 'Times',
'Fontsize', 14); % Abscisas
grid on; % Malla
axis ([-13 13 -5 5]);
2. Graficar las componentes par e impar de las señales
de la Figura

a)

t= -10:0.001:10;
x=((t>0)&(t<5)).*(t*4/5);
a=-t;
f=((a>0)&(a<5)).*(a*4/5);

xPAR = (x + f)/2;
xIMPAR = (x - f)/2;

plot(t,xPAR);
axis ([-10 10 -1 5]);

plot (t, xIMPAR);


axis ([-10 10 -5 5]);
b)

t= -1:5;
x=((t>=0)&(t<=4)).*(4-abs(2*(t-2)));

stem(t,x);
axis ([-1 5 -1 5]);

Componentes par e impar:

tmax = 5;
puntos = 10;
t = linspace(tmin, tmax, puntos);
y=((t>=0)&(t<=4)).*(4-abs(2*(t-2)));
stem (t, y, 'k'); % Función en negro
hold on;
xlabel ('t', 'FontName', 'Times', 'Fontsize', 14); % Abscisas
ylabel ('Función (negro), Par (rojo), Impar (verde), Suma (azul)', 'FontName',
'Times',
'Fontsize', 14); % Ordenadas
grid on; % Malla
axis ([(3/4)*tmin, (3/4)*tmax, -(2/3)*max(y), (3/2)*max(y)]); % Área de dibujo
set (gca, 'xtick', [T1 T2], 'XTickLabel', {'T1'; 'T2'}, 'FontName', 'Times', 'Fontsize',
12);
set (gca, 'ytick', [0], 'YTickLabel', {' 0'}, 'FontName', 'Times', 'Fontsize', 12);
tt = -t;
yy =((tt>=0)&(tt<=4)).*(4-abs(2*(tt-2)));
ypar = 0.005 + (y + yy)/2; % Parte par
stem (t, ypar, 'r');
hold on;
yimpar = (y - yy)/2 - 0.005; % Parte impar
stem(t, yimpar, 'g');
hold on;
ytotal = ypar + yimpar - 0.02;
stem (t, ytotal, 'b', 'Linewidth', 2); % Suma en azul de grosor 2
hold off;
title ('Partes par e impar de una función', 'FontName', 'Times', 'Fontsize', 24);
% Título

Vous aimerez peut-être aussi