summaryrefslogtreecommitdiff
path: root/162/CH1/EX1.6/example16.sce
blob: 628ab4e6913a7efaf40b4e3a66fb7682d73e455e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 1.6
clc;
n1=-4:-1;
for i=1:length(n1)
    x(i)=1+(n1(i)/4);
end
for j=5:9
    x(j)=1;
end
n=-4:4;
plot2d3(n,x);
xtitle('x[n]');