summaryrefslogtreecommitdiff
path: root/692/CH9/EX9.1
diff options
context:
space:
mode:
Diffstat (limited to '692/CH9/EX9.1')
-rwxr-xr-x692/CH9/EX9.1/P9_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/692/CH9/EX9.1/P9_1.sce b/692/CH9/EX9.1/P9_1.sce
new file mode 100755
index 000000000..c1fcdc5d8
--- /dev/null
+++ b/692/CH9/EX9.1/P9_1.sce
@@ -0,0 +1,12 @@
+//EXAMPLE 9.1
+//pass band & stop band ripple
+clc;
+clear;
+ap=0.1;//peak passband ripple in dB
+as=35;//min. stopband attenuation in dB
+
+//calculation of peak ripple values
+dp=1-10^-(ap/20);
+disp(dp,'dp = ');
+ds=10^-(as/20);
+disp(ds,'ds = ');