diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2048/CH4/EX4.1 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2048/CH4/EX4.1')
-rwxr-xr-x | 2048/CH4/EX4.1/aconv1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
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)
|