summaryrefslogtreecommitdiff
path: root/830/CH2/EX2.1.6/sample.sce
blob: 2aed758d86cdd603f48453b03e7651e7bc952947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Graphical//
//Implementation of Equation 2.1.6 in Chapter 2
//Digital Signal Processing by Proakis, Third Edition, PHI
//Page 45

clear; clc; close;
L = 4;  //Upperlimit
n = -L:L;
x = [zeros(1,L),1,zeros(1,L)];
a=gca();
a.thickness = 2;
a.y_location = "middle";
plot2d3('gnn',n,x) 
xtitle('Graphical Representation of Unit Sample Sequence','n','x[n]');