Professional Documents
Culture Documents
Graphical Form:
Graphical Representation is a way of analysing numerical data. It exhibits the relation
between data, ideas, information and concepts in a diagram. It is easy to understand and it
is one of the most important learning strategies. It always depends on the type of
information in a particular domain. There are different types of graphical representation.
Tabular Form Equation:
x(t) = {0 -4 ≤ t ≤ -1
{1 -1 ≤ t ≤ 0
{2 0≤t≤2
{0 2≤t≤4
x(t) = {0 -4 ≤ t ≤ -1
{0 -1 ≤ t ≤ 0
{1 0≤t≤2
{0 2≤t≤4
t1=-4:0.01:-1;
t2=-1:0.01:0;
t3=0:0.01:2;
t4=2:0.01:4;
t=[t1 t2 t3 t4];
x1=zeros(size(t1));
x2=ones(size(t2));
x3=2*ones(size(t3));
x4=zeros(size(t4));
x=[x1 x2 x3 x4];
subplot(3,1,1)
plot(t,x,'linewidth',3);
a1=zeros(size(t1));
a2=zeros(size(t2));
a3=ones(size(t3));
a4=zeros(size(t4));
a=[a1 a2 a3 a4];
subplot(3,1,2);
plot(t,a,'linewidth',3);
y=conv(x,a);
subplot(3,1,3);
plot(y,'linewidth',3);
Tabular Form Equation:
i) Square wave signal.
ii) Ramp signal.
x(t) = {0 -4 ≤ t ≤ -1
{1 -1 ≤ t ≤ 0
{2 0≤t≤2
{0 2≤t≤4
Ramp signal
t1=-4:0.01:-1
t2=-1:0.01:0
t3=0:0.01:2
t4=2:0.01:4
t=[t1 t2 t3 t4]
x1=zeros(size(t1))
x2=ones(size(t2))
x3=2*ones(size(t3))
x4=zeros(size(t4))
x=[x1 x2 x3 x4]
t5=0:1:2
r=t5
hold on
subplot(1,2,1)
plot(t5,r,'linewidth',3)
title('Ramp Signal')
grid on
subplot(1,2,2)
plot(t,x,'linewidth',3)
title('Square Wave Signal')
grid on