summaryrefslogtreecommitdiff
path: root/2279/CH1/EX1.6/Ex1_6.sce
blob: 0af1f46bd555c453bec1889c9efab8d0ef14ad70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clc
clear
clf
n1=-2:1:2;
x1=-2:1:2;
subplot(3,1,1)
plot(n1,x1,".");
xtitle("x1(n)","n","x1(n)");
xgrid(5)
n=-5:1:5;
for i=1:length(n)
   x2(i)=n(i);
   x3(i)=2-n(i);
end
subplot(3,1,2);
plot(n,x2,".");
xtitle("x2(n)","n","x2(n)");
xgrid(5);
subplot(3,1,3);
plot(n,x3,".");
xtitle("x3(n)","n","x3(n)");
xgrid(5);