summaryrefslogtreecommitdiff
path: root/40/CH5/EX5.9a
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /40/CH5/EX5.9a
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 '40/CH5/EX5.9a')
-rwxr-xr-x40/CH5/EX5.9a/Exa_5_9a.jpgbin0 -> 18362 bytes
-rwxr-xr-x40/CH5/EX5.9a/Exa_5_9a.sce19
2 files changed, 19 insertions, 0 deletions
diff --git a/40/CH5/EX5.9a/Exa_5_9a.jpg b/40/CH5/EX5.9a/Exa_5_9a.jpg
new file mode 100755
index 000000000..f2f0d0e24
--- /dev/null
+++ b/40/CH5/EX5.9a/Exa_5_9a.jpg
Binary files differ
diff --git a/40/CH5/EX5.9a/Exa_5_9a.sce b/40/CH5/EX5.9a/Exa_5_9a.sce
new file mode 100755
index 000000000..46f3540d1
--- /dev/null
+++ b/40/CH5/EX5.9a/Exa_5_9a.sce
@@ -0,0 +1,19 @@
+//DTFT and steady state response
+a=0.5,b=1;F=0.25;
+n=0:(5/1000):5;
+h=(a^n);
+x=10*cos(0.5*%pi*n'+%pi/3);
+H=h*exp(-%i*n'*F);
+Yss=H*x;
+[phase_Yss,m]=phasemag(Yss);
+Yss=real(Yss);
+subplot(2,1,1)
+plot2d(n,Yss);
+xlabel('Frequency in radians')
+ylabel('abs(Yss)')
+title('magnitude Response')
+subplot(2,1,2)
+plot2d(n,phase_Yss)
+xlabel('Frequency in Radians');
+ylabel('<(y)')
+title('Phase Response') \ No newline at end of file