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 --- 2048/CH4/EX4.1/aconv1.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2048/CH4/EX4.1/aconv1.sce (limited to '2048/CH4/EX4.1') diff --git a/2048/CH4/EX4.1/aconv1.sce b/2048/CH4/EX4.1/aconv1.sce new file mode 100755 index 000000000..48b7bbb29 --- /dev/null +++ b/2048/CH4/EX4.1/aconv1.sce @@ -0,0 +1,16 @@ +// To produce a^n 1(n) +// 4.1 + +exec('stem.sci',-1); +exec('label.sci',-1); + +a = 0.9; +n = -10:20; +y = zeros(1,size(n,'*')); +for i = 1:length(n) + if n(i)>=0, + y(i) = a^n(i); + end +end +stem(n,y) +label('u1',4,'Time(n)','0.9^n1(n)',4) -- cgit