summaryrefslogtreecommitdiff
path: root/1514/CH7/EX7.5/ch7_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1514/CH7/EX7.5/ch7_5.sce')
-rwxr-xr-x1514/CH7/EX7.5/ch7_5.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1514/CH7/EX7.5/ch7_5.sce b/1514/CH7/EX7.5/ch7_5.sce
new file mode 100755
index 000000000..ccd79141e
--- /dev/null
+++ b/1514/CH7/EX7.5/ch7_5.sce
@@ -0,0 +1,12 @@
+//chapter 7
+//example 7.5
+//page 203
+clear all;
+clc ;
+//given
+V1=1; //output voltage when signal frequency is 5khz in V
+V2=0.707; //output voltage when signal frequency is 20khz in V
+
+//change in output voltage in decibel
+P=20* log10(V2/V1)
+printf('change in output power in decibel=%d dB',P);