You are on page 1of 20

SEGUNDO LABORATORIO CALIFICADO

SEÑALES Y SISTEMAS

EDUARDO NAJARRO VILLALTA 201411428

PARTE 1:

1.1

clc
clear all
m= -1:10;
p = [0 0 0 0 1 1 1 1 1 1 0 0];
q = [0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0];
x = p; h = q;
y = conv(x,h);
n = 0: 28;
stem(m,p,'filled')
figure
stem(n,y(1:length(n)),'filled')
1.2

clc
clear all
m= -1:14;
p = [0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0];
x = p; h = p;
y = conv(x,h);
n = -2:25;
stem(m,p,'filled')
figure
stem(n,y(1:length(n)),'filled')
1.3

A)

Para h[n]

clc
clear all
m= 0:40;
p = sin(0.5*m);
h = p;
figure
stem(m,h,'filled')
Para x[n]

clc
clear all
n = 0:40;
q = sin(0.2*n);
x = q;
figure
stem(n,x,'filled')
B)

clc
clear all
m= 0:40;
p = sin(0.5*m);
n = 0:40;
q = sin(0.2*n);
x = q; h = p;
y = conv(x,h);
figure
stem(n,y(1:length(n)),'filled')
PARTE 2:

A)

2.1

clc
clear all
t=[-10:0.002:10];
x = 1+square(2*pi*t);
plot(t,x)
axis([-10 10 -1 1])
grid
xlabel('Time (sec)')
ylabel('x(t)')
clc
clear all
t=[-10:0.2:10];
x = exp(-t);
plot(t,x)
axis([-2 10 -1 1])
grid
xlabel('Time (sec)')
ylabel('x(t)')
clc
clear all
t=[-10:0.2:10];
x = 1+sawtooth(2*pi*t);
plot(t,x)
axis([-2 10 -1 3])
grid
xlabel('Time (sec)')
ylabel('x(t)')
B)

𝑦(𝑡) ∗ 𝑧(𝑡)

clc
clear all
t=[-10:0.2:10];
p = 1+square(2*pi*t);
q = 1+sawtooth(2*pi*t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([-20 220 0 160])
grid
xlabel('Time (sec)')
ylabel('x(t)')
𝑣(𝑡) ∗ 𝑧(𝑡)

clc
clear all
t=[-10:0.2:10];
p = exp(-t);
q = 1+sawtooth(2*pi*t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([-20 150 0 120000])
grid
xlabel('Time (sec)')
ylabel('x(t)')
𝑣(𝑡) ∗ 𝑦(𝑡)

clc
clear all
t=[-10:0.2:10];
p = exp(-t);
q = 1+square(2*pi*t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([-20 150 0 200000])
grid
xlabel('Time (sec)')
ylabel('x(t)')
𝑦(𝑡) ∗ 𝑦(𝑡)

clc
clear all
t=[-10:0.2:10];
p = 1+square(2*pi*t);
q = 1+square(2*pi*t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([-10 220 0 250])
grid
xlabel('Time (sec)')
ylabel('x(t)')
𝑧(𝑡) ∗ 𝑧(𝑡)

clc
clear all
t=[-10:0.2:10];
p = 1+sawtooth(2*pi*t);
q = 1+sawtooth(2*pi*t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([-10 210 0 90])
grid
xlabel('Time (sec)')
ylabel('x(t)')
[𝑣(𝑡) + 𝑧(𝑡)] ∗ 𝑧(𝑡)

Clc
clear all
t=[-10:0.2:10];
p = exp(-t)+1+sawtooth(2*pi*t);
q = 1+sawtooth(2*pi*t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([-10 140 0 150000])
grid
xlabel('Time (sec)')
ylabel('x(t)')
2.2

𝑥(𝑡) = 𝑢(𝑡)𝑢(1 − 𝑡)

clc
clear all
t=[-10:0.002:10];
x=heaviside(t).*heaviside(1-t);
plot(t,x)
axis([-2 3 -1 2])
grid
xlabel('Time(sec)')
ylabel('x(t)')
ℎ(𝑡) = 𝑢(𝑡)𝑢(1 − 𝑡)

clc
clear all
t=[-10:0.002:10];
x=heaviside(t).*heaviside(1-t);
plot(t,x)
axis([-2 3 -1 2])
grid
xlabel('Time(sec)')
ylabel('x(t)')
y(t)=x(t)*h(t)

clc
clear all
t=[-10:0.2:10];
p=heaviside(t).*heaviside(1-t);
q=heaviside(t).*heaviside(1-t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([90 120 0 5])
grid
xlabel('Time (sec)')
ylabel('x(t)')
2.3

𝑥(𝑡) = 𝑒 −|𝑡| 𝑢(𝑡 + 2)𝑢(2 − 𝑡)

clc
clear all
t=[-10:0.002:10];
x=exp(-abs(t)).*heaviside(t+2).*heaviside(2-t);
plot(t,x)
axis([-15 15 -1 2])
grid
xlabel('Time(sec)')
ylabel('x(t)')
ℎ(𝑡) = 𝑢(𝑡 − 1)𝑢(2 − 𝑡)

clc
clear all
t=[-10:0.002:10];
x=heaviside(t-1).*heaviside(2-t);
plot(t,x)
axis([-1 4 -0.5 1.5])
grid
xlabel('Time(sec)')
ylabel('x(t)')
y(t)=x(t)*h(t)

clc
clear all
t=[-10:0.2:10];
p=exp(-abs(t)).*heaviside(t+2).*heaviside(2-t);
q=heaviside(t-1).*heaviside(2-t);
x = p; h = q;
y = conv(x,h);
plot(y);
axis([90 125 0 4.5])
grid
xlabel('Time (sec)')
ylabel('x(t)')

You might also like