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 /2219/CH9/EX9.8/Ex9_8.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 '2219/CH9/EX9.8/Ex9_8.sce')
-rwxr-xr-x | 2219/CH9/EX9.8/Ex9_8.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2219/CH9/EX9.8/Ex9_8.sce b/2219/CH9/EX9.8/Ex9_8.sce new file mode 100755 index 000000000..7232cd01c --- /dev/null +++ b/2219/CH9/EX9.8/Ex9_8.sce @@ -0,0 +1,18 @@ +// Chapter 9 example 8
+//------------------------------------------------------------------------------
+clc;
+clear;
+// Given Data
+PW = 10*10^-6; // pulse width in sec
+f = 10*10^9; // frequency in Hz
+fm = 1000; // modulating frequency
+
+// calculations
+BW_M = 1/PW // matched bandwidth
+cf1 = f+fm; // closest freq.
+cf2 = f-fm; // closest freq.
+fo = f; // centre freq.
+
+// Output
+mprintf('Centre of frequency spectrum = %d Khz\n The two closet frequencies to the center of the spectrum are %d Khz and %d Khz',fo/10^3,cf1/10^3,cf2/10^3);
+//------------------------------------------------------------------------------
|