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 /2414/CH5/EX5.5 | |
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 '2414/CH5/EX5.5')
-rwxr-xr-x | 2414/CH5/EX5.5/Ex5_5.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/2414/CH5/EX5.5/Ex5_5.sce b/2414/CH5/EX5.5/Ex5_5.sce new file mode 100755 index 000000000..95d7bbf62 --- /dev/null +++ b/2414/CH5/EX5.5/Ex5_5.sce @@ -0,0 +1,27 @@ +clc;
+clear all;
+//page no 152
+//prob no. 5.5
+
+//for input spectrum
+f=[-20:.001:20]; //x axis
+V=[1 zeros(-20+.001:.001:20-.001) 1]; //y axis
+clf;
+subplot(211);
+plot2d(f,V,[5],rect=[-130,0,130,2])
+a=gca(); // Handle on axes entity
+a.x_location = "origin";
+a.y_location = "origin";
+xtitle('Input Spectrum','f,kHz','');
+xgrid
+
+//for output spectrum
+f=[-120:.01:120]; //x axis
+V=[1 zeros(-120+.01:.01:-80-.01) 1 zeros(-80+.01:0.01:80-0.01) 1 zeros(80+.01:.01:120-.01) 1]
+subplot(212);
+plot2d(f,V,[5],rect=[-130,0,130,2])
+a=gca(); // Handle on axes entity
+a.x_location = "origin";
+a.y_location = "origin";
+xtitle('Output Spectrum','f,kHz','');
+xgrid
|