From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 830/CH2/EX2.1.8/ramp.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 830/CH2/EX2.1.8/ramp.sce (limited to '830/CH2/EX2.1.8') diff --git a/830/CH2/EX2.1.8/ramp.sce b/830/CH2/EX2.1.8/ramp.sce new file mode 100755 index 000000000..559330533 --- /dev/null +++ b/830/CH2/EX2.1.8/ramp.sce @@ -0,0 +1,14 @@ +//Graphical// +//Implementation of Equation 2.1.8 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),0:L]; +a=gca(); +a.thickness = 2; +a.y_location = "middle"; +plot2d3('gnn',n,x) +xtitle('Graphical Representation of Unit Ramp Signal','n','x[n]'); -- cgit