Professional Documents
Culture Documents
1. Objectives:
3. Codes
subplot (3,1,1);
plot(x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7,x10,y10,c1,t1,'LineWidth',2.5);
%% =================================
% MY CODE FOR EVEN SIGNAL
x1a=-cos(((pi/6)*xe1)+(pi/6));
x1b=-cos(((pi/6)*xe4)-(pi/6));
x2a=(-2*xe2*1.25-12);
x2b=-2;
x3a=xe3*1.5;
x3b=sin((pi/2)*xe6);
e1=(1/2)*(x1a+x1b);
e2=(1/2)*(x2a+x2b);
e3=(1/2)*(x3a+x3b);
e4=(1/2)*(x1b+x1a);
e5=(1/2)*(x2b+x2a);
e6=(1/2)*(x3b+x3a);
subplot(3,1,2);
plot(xe1,e1,'o',xe2,e2,'o',xe3,e3,'o',xe4,fliplr(e4),'o',xe5,fliplr(e5),'o',xe6,fliplr(e6),'o','Li
newidth',2);
xlabel ('time');
ylabel ('x(t)');
title ('EVEN -- CONTINUOUS-TIME SIGNAL');
hold on;
%% DATAS FOR MY GRAPH
%%%%%%%%%%%%
%%%%%%%%%%%%
%%%%%%%%%%%%
e1b=(1/2)*(x1a-x1b);
e2b=(1/2)*(x2a-x2b);
e3b=(1/2)*(x3a-x3b);
e4b=(1/2)*(x1b-x1a);
e5b=(1/2)*(x2b-x2a);
e6b=(1/2)*(x3b-x3a);
subplot(3,1,3);
plot(xe1,e1b,'o',xe2,e2b,'o',xe3,e3b,'o',xe4,fliplr(e4b),'o',xe5,fliplr(e5b),'o',xe6,fliplr(e6b),'
o','Linewidth',2);
xlabel ('time');
ylabel ('x(t)');
title ('ODD -- CONTINUOUS-TIME SIGNAL');
hold on;
%% DATA OF MY GRAPH
Functions
Continuous-Time Signal