You are on page 1of 5

clear

Page No
Code :

clear

clc

close all

t=-10:0.05:10;

x0 = x(t);

subplot(3,3,1)

plot(t, x0)

axis([-10 10 -20 201])

xlabel('t')

ylabel('y = x(t)')

title('Unique Signal (CT)')

x1 = x(-t);

subplot(3,3,2)

plot(t,x1)

axis([-10 10 -20 20])

xlabel('t')

ylabel('y = x(-t)')

title('Mirror')

x2 = -x(t);

subplot(3,3, 3)

plot(t,x2)

axis([-10 10 -20 20])

xlabel('t')

ylabel('y = -x(t)')

title('Reflection')

x3=x(t-2);

subplot (3,3,4)

plot(t, x3)

Page No
axis([-10 10 -20 20])

xlabel ('t')

ylabel('y = x(t-2)')

title('Right Shift (Delay)')

x4 = x(t+2);

subplot(3,3,5)

plot(t,x4)

axis ([-10 10 -20 20])

xlabel('t')

ylabel('y = x(*+2)')

title('Left Shift (Advance)')

x5 = x(2*t);

subplot (3,3,6)

plot(t, x5)

axis([-10 10 -20 20])

xlabel('t')

ylabel ('y = x(2t)')

title('Compression')

x6 = x(t/2);

subplot (3,3,7)

plot(t, x6)

axis([-10 10 -20 20])

xlabel('t')

ylabel('y = x(t/2)')

title('Expansion')

x7 = x(-2*t + 3);

subplot (3,3,8)

plot(t, x7)

axis ([-10 10 -20 20])

xlabel('t')

ylabel('y = x(-2t+3)')

Page No
title('y = x(-2t+3)')

x8 = x((-1/3)*t - 1);

subplot (3,3,9)

plot(t, x8)

axis([-10 10 -20 20])

xlabel ('t')

ylabel('y = x(-*/3 -1)')

title('y = x(-t/3 -1)')

function y=x(t)

for i=1:length(t)

if t(i)>=0 & t(i)<2

y(i)=t(i)/2;

elseif t(i)>=2 & t(i)

y(i)=exp(t(i));

elseif t(i)>=3 & t(i)<4

y(i)=sin(t(i));

elseif t(i)>=-2 & t(i)<0

y(i)=4*t(i)

else

y(i)=0;

end

end

end

Page No
Conclusion:

Roll No. Signature of Faculty with Date


Department of Electronics and Telecommunication Engineering
SS Sem – IV/Jan-May 2023

Page No

You might also like