using Matlab Find and sketch the following for the xs Plot x
 using Matlab
Solution
close all;
clear all;
clc;
t1=-1:0.001:-0.001;
u3=t1>=-1;
x3=2*u3;
t2=0:0.001:2.999;
x4=2*exp(-t2/2);
x5=[x3 x4];
t3=-1:0.001:2.999;
figure;
plot(t3,x5);
title(\'x(t)\');
x6=fliplr(x5);
t4=fliplr(-t3);
figure;
plot(t4,x6);
title(\'x(-t)\');
xe=(x5+x6)/2;
t5=-3:0.0015:2.999;
figure;
plot(t5,xe);
title(\'even signal\');
xo=(x5-x6)/2;
figure;
plot(t5,xo);
title(\'odd signal\');

