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 /692/CH2/EX2.9 | |
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 '692/CH2/EX2.9')
-rwxr-xr-x | 692/CH2/EX2.9/P2_9.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/692/CH2/EX2.9/P2_9.sce b/692/CH2/EX2.9/P2_9.sce new file mode 100755 index 000000000..ecba03118 --- /dev/null +++ b/692/CH2/EX2.9/P2_9.sce @@ -0,0 +1,17 @@ +//EXAMPLE 2.9, Generation of a Square wave sequence: +clc; +clear; +clf(); +a=gca(); +figure(0); +a.x_location="origin"; +x=[0:1:80]; +y1=sin(x*.05*%pi); +y2=sin(x*.15*%pi); +y3=sin(x*.25*%pi); +y4=y1+y2/3+y3/5; +plot2d3(x,y4,2) +plot(x,y4,'r.') +xtitle('Approximate Square wave','x','y4'); +a.children.children.thickness=3; + |