Você está na página 1de 6

2)

a)
tempo=-1:0.001:1;
sinal=sin(2.*tempo);
plot(tempo,sinal)
title('funo f(x)=sen(2x)')
grid on

b)
tempo=-2:0.001:2;
sinal=sin(10.*tempo+5);
plot(tempo,sinal)
title('funo f(x)=sen(10x+5)')
grid on

c)
tempo=-1:0.001:1;
sinal=sin(tempo+pi)+25;
plot(tempo,sinal)
title('funo f(x)=sen(tempo+pi)+25')
grid on

d)
tempo=-1:0.001:1;
frequencia=3;
sinal=cos(2*pi*frequencia.*tempo);
plot(tempo,sinal)
title('funo f(x)=cos(2*pi*f*t)')
grid on

e)
tempo=-1:0.001:1;
sinal=exp(-tempo);
plot(tempo,sinal)
title('funo f(x)=e^(-t)')
grid on

f)tempo=-1:0.001:1;
sinal=exp(10.*tempo);
plot(tempo,sinal)
title('funo f(x)=e^(10*t)')
grid on

3)
a) tempo=-1:0.001:1;
sinal=10+sin(2.*tempo);
plot(tempo,sinal)
title('funo f(x)=10+sen(2*t)')
grid on

b)
tempo=-1:0.001:1;
sinal=exp(-tempo)+sin(2.*tempo);
plot(tempo,sinal)
title('f(t)=e^(-t)+sen(2*t)');
grid on

c)
tempo=-1:0.001:1;
sinal=exp(tempo)+cos(2.*tempo);
plot(tempo,sinal)
title('f(t)=e^(t)+cos(2*t)');
grid on

d)
tempo=-2:0.001:2;
sinal=cos(2.*tempo)+sin(2.*tempo);
plot(tempo,sinal)
title('f(t)=cos(2*t)+cos(2*t)');
grid on

e)
tempo=-10:0.01:10;
sinal=cos(2.*tempo+pi)+sin(2.*tempo);
plot(tempo,sinal)
title('f(t)=cos(2*t+pi)+cos(2*t)');
grid on

4)
a)
tempo=-1:0.001:1;
tempo1=0:0.1:1;
sinal=sin(2.*tempo);
sinal2=sin(2.*tempo1);
subplot(2,1,1)
plot(tempo,sinal)
title('funo f(x)=sen(2x)')
grid on
subplot(2,1,2)
stem(tempo1,sinal2)
axis([-1 1 -1 1]);
grid on

b)
tempo=-2:0.001:2;
tempo1=0:0.1:1;
sinal=sin(10.*tempo+5);
sinal2=sin(10.*tempo1+5);
subplot(2,1,1)
plot(tempo,sinal)
title('funo f(x)=sen(2x)')
grid on
subplot(2,1,2)
stem(tempo1,sinal2)
axis([-2 2 -1 1]);
grid on

c)
tempo=-1:0.001:1;
tempo1=0:0.1:1;
sinal=sin(tempo+pi)+25;
sinal2=sin(tempo1+pi)+25;
subplot(2,1,1)
plot(tempo,sinal)
title('funo f(x)=sen(t+pi)+25')
grid on
subplot(2,1,2)
stem(tempo1,sinal2)
axis([-1 1 24 26]);
grid on

d)
tempo=-1:0.001:1;
f=3;
tempo1=0:0.04:1;
sinal=sin(2*pi*f.*tempo);
sinal2=sin(2*pi*f.*tempo1);
subplot(2,1,1)
plot(tempo,sinal)
title('funo f(x)=sen(2*pi*f*t)')
grid on
subplot(2,1,2)
stem(tempo1,sinal2)
axis([-1 1 -1 1]);
grid on

e)
tempo=-1:0.001:1;
tempo1=0:0.04:1;
sinal=exp(-tempo);
sinal2=exp(-tempo1);
subplot(2,1,1)
plot(tempo,sinal)
title('funo f(x)=exp(-t)')
grid on
subplot(2,1,2)
stem(tempo1,sinal2)
axis([-1 1 0 3]);
grid on

f)
tempo=-1:0.001:1;
tempo1=0:0.04:1;
sinal=exp(10.*tempo);
sinal2=exp(10.*tempo1)
subplot(2,1,1)
plot(tempo,sinal)
title('funo f(x)=exp(10*t)')
grid on
subplot(2,1,2)
stem(tempo1,sinal2)
axis([-1 1 0 3e4]);
grid on

5)
tempo=-2:0.001:2;
delta_t=pi/2;
sinal=sin(tempo+delta_t);
sinal1=sin(tempo+delta_t+delta_t);
sinal2=sin(tempo+delta_t-delta_t);
subplot(3,1,1)
plot(tempo,sinal)

title('sinal')
axis([-4 4 -3 4]);
grid on
subplot(3,1,2)
plot(tempo,sinal1)
title('avano')
axis([-4 4 -3 4]);
grid on
subplot(3,1,3)
plot(tempo,sinal2)
title('atraso')
axis([-4 4 -3 4]);
grid on

b)
tempo=-2:0.001:2;
delta_t=-pi/4;
sinal=cos(tempo+delta_t);
sinal1=cos(tempo+delta_t+delta_t);
sinal2=cos(tempo+delta_t-delta_t);
subplot(3,1,1)
plot(tempo,sinal)
title('sinal')
axis([-4 4 -3 4]);
grid on
subplot(3,1,2)
plot(tempo,sinal1)
title('avano')
axis([-4 4 -3 4]);
grid on
subplot(3,1,3)
plot(tempo,sinal2)
title('atraso')
axis([-4 4 -3 4]);
grid on

c)
tempo=-2:0.001:2;
delta_t=-pi/8;
sinal=sin(tempo+delta_t)+exp(-tempo+delta_t);
sinal1=cos(tempo+delta_t+delta_t)+exp(-tempo+delta_t);
sinal2=cos(tempo+delta_t-delta_t)+exp(-tempo+delta_t);
subplot(3,1,1)
plot(tempo,sinal)
title('sinal')
axis([-4 4 -2 6]);
grid on
subplot(3,1,2)
plot(tempo,sinal1)
title('avano')
axis([-4 4 -2 6]);
grid on
subplot(3,1,3)
plot(tempo,sinal2)

title('atraso')
axis([-4 4 -2 6]);
grid on

d)
tempo=-2:0.001:2;
delta_t=0.5;
sinal=exp(-tempo+delta_t);
sinal1=exp(-tempo+delta_t+delta_t);
sinal2=exp(-tempo+delta_t-delta_t);
subplot(3,1,1)
plot(tempo,sinal)
title('sinal')
axis([-4 4 -0 15]);
grid on
subplot(3,1,2)
plot(tempo,sinal1)
title('avano')
axis([-4 4 -0 15]);
grid on
subplot(3,1,3)
plot(tempo,sinal2)
title('atraso')
axis([-4 4 -0 15]);
grid on

Você também pode gostar