summaryrefslogtreecommitdiff
path: root/2048/CH6/EX6.3/acf_ex.sce
diff options
context:
space:
mode:
Diffstat (limited to '2048/CH6/EX6.3/acf_ex.sce')
-rwxr-xr-x2048/CH6/EX6.3/acf_ex.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2048/CH6/EX6.3/acf_ex.sce b/2048/CH6/EX6.3/acf_ex.sce
new file mode 100755
index 000000000..c3249f7ba
--- /dev/null
+++ b/2048/CH6/EX6.3/acf_ex.sce
@@ -0,0 +1,22 @@
+// To demonstrate the periodicity property of ACF as discussed in Example 6.7 on page 173
+// 6.3
+
+exec('plotacf.sci',-1);
+exec('label.sci',-1);
+
+L = 500;
+n = 1:L;
+w = 0.1;
+S = sin(w*n);
+m = 1;
+xi = m*rand(L,1,'normal');
+Spxi = S+xi';
+xset('window',0);
+plot(Spxi);
+label('',4,'n','y',4)
+xset('window',1);
+plotacf(Spxi,1,L,1);
+
+
+
+