summaryrefslogtreecommitdiff
path: root/62/CH2/EX2.29.a/ex_2_29.sce
blob: 4b9c95fa6f9c1ececc4717a7409ae3fd1246dad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
clear;
clc;
n=0:10;
alpha=.5;
betaa=.6;
x=betaa^n;
h=alpha^n;
y=convol(x,h);
figure
a=gca();
a.x_location="origin";
plot2d3(n,h) 
plot(n,h,'r.')
xtitle('Impulse Response','n','h[n]');
a.children.children.thickness = 3;
a.children.children.foreground= 2;
figure
a=gca();
plot2d3(n,x) 
plot(n,x,'r.')
xtitle('Input Response','n','x[n]');
a.children.children.thickness = 3;
a.children.children.foreground= 2;
figure
a=gca();
N=0:20; 
plot2d3(N,y)
plot(N,y,'r.')
xtitle('Output Response','n','y[n]');
a.children.children.thickness = 3;
a.children.children.foreground= 2;