summaryrefslogtreecommitdiff
path: root/737/CH2/EX2.5/Example2_05.sce
diff options
context:
space:
mode:
Diffstat (limited to '737/CH2/EX2.5/Example2_05.sce')
-rw-r--r--737/CH2/EX2.5/Example2_05.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/737/CH2/EX2.5/Example2_05.sce b/737/CH2/EX2.5/Example2_05.sce
new file mode 100644
index 000000000..5230aa258
--- /dev/null
+++ b/737/CH2/EX2.5/Example2_05.sce
@@ -0,0 +1,12 @@
+//Example 2.5 page 28
+//Given the DSP system shown in Figures 2.16 to 2.18, where a sampling
+//rate of 16,000 Hz is used and the anti-aliasing filter is a second-order
+//Butterworth lowpass filter with a cutoff frequency of 3.4 kHz, determine
+//the percentage of aliasing level at the cutoff frequency.
+clc,clear,close;
+fs=16000,fc = 3400;//Hz
+n =2;
+
+fa = 3400;//Hz, aliasing frequency
+aliasing_noise = (1+(fa/fc)^(2*n))^(.5) / (1+((fs-fa)/fc)^(2*n))^(.5) * 100;
+disp("Aliasing Noise Level = "+string(aliasing_noise)+"%" ) \ No newline at end of file