summaryrefslogtreecommitdiff
path: root/162/CH1/EX1.9.b/example19b.sce
diff options
context:
space:
mode:
Diffstat (limited to '162/CH1/EX1.9.b/example19b.sce')
-rwxr-xr-x162/CH1/EX1.9.b/example19b.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/162/CH1/EX1.9.b/example19b.sce b/162/CH1/EX1.9.b/example19b.sce
new file mode 100755
index 000000000..781010f1f
--- /dev/null
+++ b/162/CH1/EX1.9.b/example19b.sce
@@ -0,0 +1,14 @@
+//Example 1.9b
+clc;
+for n=0:100
+ x(n+1)=2;
+end
+P=0;
+for n=0:100
+ P=P+(abs(x(n+1)^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