summaryrefslogtreecommitdiff
path: root/162/CH1/EX1.9.c
diff options
context:
space:
mode:
Diffstat (limited to '162/CH1/EX1.9.c')
-rwxr-xr-x162/CH1/EX1.9.c/example19c.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/162/CH1/EX1.9.c/example19c.sce b/162/CH1/EX1.9.c/example19c.sce
new file mode 100755
index 000000000..e3860395d
--- /dev/null
+++ b/162/CH1/EX1.9.c/example19c.sce
@@ -0,0 +1,14 @@
+//Example 1.9c
+clc;
+for n=1:100
+ x(n)=3*exp(%i*2*n);
+end
+P=0;
+for n=1:100
+ P=P+(abs(x(n)^2))/100;
+end
+if P<%inf then
+ disp(P,'The given signal is power signal with power =');
+else
+ disp('The given signal is not power signal');
+end \ No newline at end of file