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 /40/CH7/EX7.7/Exa_7_7.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 '40/CH7/EX7.7/Exa_7_7.sce')
-rwxr-xr-x | 40/CH7/EX7.7/Exa_7_7.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/40/CH7/EX7.7/Exa_7_7.sce b/40/CH7/EX7.7/Exa_7_7.sce new file mode 100755 index 000000000..fcaed3724 --- /dev/null +++ b/40/CH7/EX7.7/Exa_7_7.sce @@ -0,0 +1,30 @@ +//Zero interpolation and spectrum replication
+XF=[0 1 2 1];
+X1F=[XF XF XF 0];
+YF=[X1F X1F];
+DF=0.5*[XF XF 0];
+GF=0.5*[XF 0 XF 0 XF 0];
+f=-0.2:0.1:1;
+f1=-0.1:0.05:1.15;
+f2=-0.4:0.2:1.2;
+f3=-0.2:0.1:1.2;
+length(f3),length(GF)
+a=gca();
+a.y_location="origin";
+subplot(211);
+plot2d(f,X1F);
+ylabel('X1F');
+subplot(212);
+a.y_location="origin";
+plot2d(f1,YF);
+ylabel('YF');
+xset('window',1);
+b=gca();
+b.y_location="origin";
+subplot(211);
+plot2d(f2,DF);
+ylabel('DF');
+subplot(212);
+b.y_location="origin";
+plot2d(f3,GF);
+ylabel('GF');
\ No newline at end of file |