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.28/P2_28.sce | |
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.28/P2_28.sce')
-rwxr-xr-x | 692/CH2/EX2.28/P2_28.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/692/CH2/EX2.28/P2_28.sce b/692/CH2/EX2.28/P2_28.sce new file mode 100755 index 000000000..d90addf12 --- /dev/null +++ b/692/CH2/EX2.28/P2_28.sce @@ -0,0 +1,20 @@ +//EXAMPLE 2.28,graphical representation of convolution of x & h. +clear; +clc; +x=[-2 0 1 -1 3]; +disp(x,'x'); +h=[1 2 0 -1]; +disp(h,'h'); +n=0:7; +y=convol(x,h); +disp(y,'convolution = '); +clf(); +figure(0); +a=gca(); +a.x_location="origin"; +a.y_location="origin"; +plot2d3(n,y) +plot(n,y,'r.') +xtitle('convolution','n','Y'); +a.children.children.thickness=2; +a.children.children.foreground=2; |