summaryrefslogtreecommitdiff
path: root/162/CH1/EX1.8.a/example18a.sce
diff options
context:
space:
mode:
Diffstat (limited to '162/CH1/EX1.8.a/example18a.sce')
-rwxr-xr-x162/CH1/EX1.8.a/example18a.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/162/CH1/EX1.8.a/example18a.sce b/162/CH1/EX1.8.a/example18a.sce
new file mode 100755
index 000000000..b57719385
--- /dev/null
+++ b/162/CH1/EX1.8.a/example18a.sce
@@ -0,0 +1,9 @@
+//Example 1.8a
+//Check whether the given signal is periodic or not
+clc;
+n=-20:20;
+x=cos(0.1*%pi*n);
+plot2d3(n,x);
+f=0.1*%pi/(2*%pi);//f is no. of cycles per sample
+N=1/f;//N is no. of samples per cycle
+disp('samples',N,'Figure shows that the signal is periodic with period equal to'); \ No newline at end of file