You are on page 1of 7

WORKSHEET-4

1.)Default signal:
function[d]=sine(t);
d=(3*sin(10*pi*t).*exp(-5*t)).*[t>=0&t<=2];
end
t=-5:0.01:5;
x=sine(t);
subplot(3,2,1);
plot(t,x);
xlabel('time');
ylabel('amp');
grid on;
legend('default signal');

1.(a)y(t)=x(-t)
y_flip=sine(-t);
subplot(3,2,2);
plot(t,y_flip);
xlabel('time');
ylabel('amp');
grid;
legend('flipped signal');
1.(b)y(t)=x(t-3)
y_delay=sine(t-3);
subplot(3,2,3);
plot(t,y_delay);
xlabel('time');
ylabel('amp');
grid;
legend('delayed signal');
1.(c)y(t)=x(t+3)

y_adv=sine(t+3);
subplot(3,2,4);
plot(t,y_adv);
xlabel('time');
ylabel('amp');
grid;
legend('advanced signal');
1.(d)y(t)=x(t/2)

y_comp=sine(2*t);
subplot(3,2,5);
plot(t,y_comp);
xlabel('time');
ylabel('amp');
grid;
legend('compressed signal');
1.(e)y(t)=x(2t)

y_exp=sine(t/2);
subplot(3,2,6);
plot(t,y_exp);
xlabel('time');
ylabel('amp');
grid;
legend('expanded signal');

You might also like