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/CH3/EX3.2 | |
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/CH3/EX3.2')
-rwxr-xr-x | 2414/CH3/EX3.2/Ex3_2.sce | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/2414/CH3/EX3.2/Ex3_2.sce b/2414/CH3/EX3.2/Ex3_2.sce new file mode 100755 index 000000000..3cdc027e0 --- /dev/null +++ b/2414/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,28 @@ +clc;
+clear all;
+//chapter 3
+//page no 76
+//example 3.2
+//plot for impulse function
+t=-2:.001:2;
+vt=[zeros(-2:.001:0-.001) 1 zeros(0+.001:.001:2)] //impulse function matrix
+clf
+subplot(211)
+plot2d(t,vt,[2],rect=[-2,0,2,2])
+a=gca(); // Handle on axes entity
+a.x_location = "origin";
+a.y_location = "origin";
+
+xtitle('(a) Unit Impulse function','t','v(t)')
+
+//plot for amplitude spectum
+f=-2:.001:2;
+Vf=[ones(-2:.001:2)]
+subplot(212)
+plot2d(f,Vf,[5])
+a=gca(); // Handle on axes entity
+a.x_location = "origin";
+a.y_location = "origin";
+
+xtitle('(b) Amplitude spectrum','f','V(f)')
+xgrid
|