You are on page 1of 3

Lab3A Continuous-time signal x(t) is shown in Fig. With the help of MATLAB find following signalsa.

x(t-2)
b. x(2t)
c. x(t/2)
d. x(-t)

ProgrameA. To generate signal x(t).


function x=y(t)
x1=(3/4)*t;
x= x1.*(0<t & t<=4);
B. To calculate signals.
clear all
t=-10:0.01:10;
y0=y(t);
y1=y(t-2);
y2=y(2*t);
y3=y(t/2);
y4=y(-t);

subplot(2,2,1),plot(t,y1,'r')
xlabel('Time'),ylabel('Ans a')
axis([-5 8 -2 4])
subplot(2,2,2),plot(t,y2,'y')
xlabel('Time'),ylabel('Ans b')
axis([-5 8 -2 4])
subplot(2,2,3),plot(t,y3,'g')
xlabel('Time'),ylabel('Ans c')
axis([-4 9 -2 4])
subplot(2,2,4),plot(t,y4)
xlabel('Time'),ylabel('Ans d')
axis([-5 8 -2 4])

OUTPUT-

You might also like