summaryrefslogtreecommitdiff
path: root/1592/CH7/EX7.33
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1592/CH7/EX7.33
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1592/CH7/EX7.33')
-rwxr-xr-x1592/CH7/EX7.33/Example_7_33.sce29
-rwxr-xr-x1592/CH7/EX7.33/Fig7_33_1.jpgbin0 -> 7222 bytes
-rwxr-xr-x1592/CH7/EX7.33/Fig7_33_2.jpgbin0 -> 6402 bytes
3 files changed, 29 insertions, 0 deletions
diff --git a/1592/CH7/EX7.33/Example_7_33.sce b/1592/CH7/EX7.33/Example_7_33.sce
new file mode 100755
index 000000000..067b9055c
--- /dev/null
+++ b/1592/CH7/EX7.33/Example_7_33.sce
@@ -0,0 +1,29 @@
+//Scilab Code for Example 7.33 of Signals and systems by
+//P.Ramakrishna Rao
+//Plotting the magnitude and phase responses
+clc;
+clear;
+T=1;
+n=1;
+for w=0:0.1:20;
+ hmag(n)=2*sin(w*T/2);
+ n=n+1;
+end
+n=1;
+for w=0:0.1:20;
+ hphase(n)=%pi/2-(w*T/2);
+ n=n+1;
+end
+//Magnitude plot
+w=0:0.1:20;
+plot(w,hmag);
+title('Magnitude Plot');
+xlabel('w');
+ylabel('|H(e^jw)|');
+figure(1);
+//Phase Plot
+w=0:0.1:20;
+plot(w,hphase);
+title('Phase Plot');
+xlabel('w');
+ylabel('theta(wT)');
diff --git a/1592/CH7/EX7.33/Fig7_33_1.jpg b/1592/CH7/EX7.33/Fig7_33_1.jpg
new file mode 100755
index 000000000..4950368c9
--- /dev/null
+++ b/1592/CH7/EX7.33/Fig7_33_1.jpg
Binary files differ
diff --git a/1592/CH7/EX7.33/Fig7_33_2.jpg b/1592/CH7/EX7.33/Fig7_33_2.jpg
new file mode 100755
index 000000000..14bc76dfa
--- /dev/null
+++ b/1592/CH7/EX7.33/Fig7_33_2.jpg
Binary files differ