You are on page 1of 6

Paso 1

t=0:0.01:5;
y1=3*sin(2*pi*t);
y2=5*sin(2*pi*t);
y3=6*sin(2*pi*t);
t4=1:0.01:5;
y4=2.^t4;

plot(t,y1, 'r',t,y2,'y',t,y3,'g',t4,y4,'k');
axis([0 5 -7 30]);
grid on;
title('seales continuas');
xlabel('variable x');
ylabel('variable y');

paso 2
t=0:0.01:5;
y1=3*sin(2*pi*t);

y2=5*exp(i/2*pi*t);
y3=6*cos(2*pi*t);
t4=1:0.01:5;
y4=2.^t4;

subplot(2,2,1);
plot(y1);
axis([-5 500 -5 5]);
grid on;
title(' 1 seales continuas');
subplot(2,2,2);
plot(y2);
axis([-5 5 -5 5]);
grid on;
title(' 2 seales continuas');
subplot(2,2,3);
plot(y3);
axis([-8 300 -8 8]);
grid on;
title(' 3 seales continuas');
subplot(2,2,4);
plot(y4);
axis([-4 500 0 30]);
grid on;
title(' 4 seales continuas');

Paso 3
A=4;
f=1;
wo=2*pi*f;
t=0:0.001:1;
fase=pi/6;
senoidal=A*sin(wo*t+fase);
figure(1);
plot(t,senoidal);
cosenoidal=Acos*(wo*t+fase);
figure(2);
plot(t,cosenoidal);

Paso 4
A=4;
f=100;
T=1/f;
Tm=3*T;
wo=2*pi*T;
N=50;
Tao=Tm/N;
t=0:Tao:Tm;
fs=1/Tao;
df=fs/N;
fref=-fs/2:df:fs/2;
fase=pi/6;

senoidal=A*sin(wo*t+fase);
senoidal1=A*sin(wo*fref+fase);
senoidal2=A*sin(wo*t+fase);
senoidales=senoidal+senoidal2;
figure(1)
plot(t,senoidal,t,senoidales)

You might also like