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/CH6/EX6.15/Ex6_15.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/CH6/EX6.15/Ex6_15.sce')
-rwxr-xr-x | 2219/CH6/EX6.15/Ex6_15.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/2219/CH6/EX6.15/Ex6_15.sce b/2219/CH6/EX6.15/Ex6_15.sce new file mode 100755 index 000000000..30efbd5e9 --- /dev/null +++ b/2219/CH6/EX6.15/Ex6_15.sce @@ -0,0 +1,17 @@ +// Chapter 6 example 15
+//------------------------------------------------------------------------------
+clc;
+clear;
+// Given data
+f2 = 20; // pump frequency in GHz
+f1 = 2; // signal frequency in GHz
+
+// Calculations
+Gp = (f1+f2)/f1; // power gain if parametric amp. operated as USB up-converter
+Gp_dB = 10*log10(Gp); // power gain in dB
+Gp_lsb = (f2-f1)/f1; // power gain if parametric amp. operated as LSB up-converter
+Gp_db_lsb = 10*log10(Gp_lsb )// power gain in dB
+
+// output
+mprintf('Power gain of parametric amplifier when operated as USB up-converter = %3.1f dB\n Power gain of parametric amplifier when operated as LSB up-converter = %3.1f dB',Gp_dB,Gp_db_lsb)
+//------------------------------------------------------------------------------
|