diff options
Diffstat (limited to '67/CH1/EX1.49.b')
-rwxr-xr-x | 67/CH1/EX1.49.b/example149b.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/67/CH1/EX1.49.b/example149b.sce b/67/CH1/EX1.49.b/example149b.sce new file mode 100755 index 000000000..a5ac9be74 --- /dev/null +++ b/67/CH1/EX1.49.b/example149b.sce @@ -0,0 +1,9 @@ +//Example 1.49b
+//Determine whether the signal x(n)=cos(pi*n/2)cos(pi*n/4)
+clc;
+n=0:1/100:100
+x0=cos((%pi*n/2)+(%pi*n/4))
+x1=cos((%pi*n/2)-(%pi*n/4))
+x=(x0+x1)/2;
+plot(x);
+disp('plot shows that this is a periodic signal');
\ No newline at end of file |