summaryrefslogtreecommitdiff
path: root/52/CH9/EX9.7.a/Example9_7_a.sce
diff options
context:
space:
mode:
Diffstat (limited to '52/CH9/EX9.7.a/Example9_7_a.sce')
-rwxr-xr-x52/CH9/EX9.7.a/Example9_7_a.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/52/CH9/EX9.7.a/Example9_7_a.sce b/52/CH9/EX9.7.a/Example9_7_a.sce
new file mode 100755
index 000000000..fa6b75eab
--- /dev/null
+++ b/52/CH9/EX9.7.a/Example9_7_a.sce
@@ -0,0 +1,18 @@
+//Example 9.7 (a)
+//Program To Determine Frequency Resolution of Bartlett,
+//Welch(50% Overlap) and Blackmann-Tukey Methods
+clear;
+clc;
+close;
+//Data
+Q=10;//Quality Factor
+N=1000;//Samples
+//FREQUENCY RESOLUTION CALCULATION
+K=Q;
+rb=0.89*(2*%pi*K/N);
+rw=1.28*(2*%pi*9*Q)/(16*N);
+rbt=0.64*(2*%pi*2*Q)/(3*N);
+//Display the result in command window
+disp(rb,"Resolution of Bartlett Method");
+disp(rw,"Resolution of Welch(50% overlap) Method");
+disp(rbt,"Resolution of Blackmann-Tukey Method"); \ No newline at end of file