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 /1592/CH9/EX9.11/example_9_11.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 '1592/CH9/EX9.11/example_9_11.sce')
-rwxr-xr-x | 1592/CH9/EX9.11/example_9_11.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/1592/CH9/EX9.11/example_9_11.sce b/1592/CH9/EX9.11/example_9_11.sce new file mode 100755 index 000000000..cb72453e8 --- /dev/null +++ b/1592/CH9/EX9.11/example_9_11.sce @@ -0,0 +1,25 @@ +//Scilab Code for Example 9.11 of Signals and systems by
+//P.Ramakrishna Rao
+//Power Spectral Density
+clear;
+clc;
+clear f n;
+fo=2;
+n=1;
+RC=1/(2*%pi*10^3);
+w=4*%pi*10^3
+H=1/(1+%i*w*RC);
+disp(H,'H(f)');
+X=(abs(H))^2;
+for f=-5:5
+ Pxx(n)=25*[delta(f-fo)+delta(f+fo)];
+ Pyy(n)=X*Pxx(n);
+ n=n+1;
+end
+disp(Pxx,'Pxx=');
+disp(Pyy,'Pyy=');
+f=-5:5;
+plot2d3(f,Pyy,-2);
+title('Power Spectral Density');
+ylabel('Pyy(f)');
+xlabel('f in Hz');
|