Department: Mechatronics
Department: Mechatronics
Department: Mechatronics
Department : Mechatronics
Stage : fourth
Date : 20/6/2020
Basic Definitions
(2.1)
(2.2)
(2.3)
plotted in Figure 2.3 from year 1900 to 2002. Another example, this
time of a random sequence, is
(2.4)
Fig2.1
Fig2.2
Fig2.3
Fig2.4
Aim:
The code:
4.exponential signal:
clc;
clear all;
close all;
n=-10:10;
for i=1:21;
x(i)=0.85^n(i);
end
stem(n,x)
5.sinusoidal signal:
clc;
clear all;
close all;
n=-10:10;
for i=1:21;
x(i)=sin(2*pi*0.1*n(i));
end
stem(n,x)
Question:
1.A delayed unit sample sequence with a delay of (11) samples?
n=-5:15;
L=length(n);
for i=1:L
if n(i)==11
x(i)=1;
else
x(i)=0;
end
end
stem(n,x)
2.A sinusoidal sequence of freq. (0.9 , 1.5 , 3)?
n=-10:10
x=sin(2*pi*0.9*n)
stem(n,x)
n=-10:10
x=sin(2*pi*1.5*n)
stem(n,x)
n=-10:10
x=sin(2*pi*3*n)
stem(n,x)