summaryrefslogtreecommitdiff
path: root/3812/CH1/EX1.18.d/1_18_d.sce
diff options
context:
space:
mode:
Diffstat (limited to '3812/CH1/EX1.18.d/1_18_d.sce')
-rw-r--r--3812/CH1/EX1.18.d/1_18_d.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3812/CH1/EX1.18.d/1_18_d.sce b/3812/CH1/EX1.18.d/1_18_d.sce
new file mode 100644
index 000000000..693d03f07
--- /dev/null
+++ b/3812/CH1/EX1.18.d/1_18_d.sce
@@ -0,0 +1,12 @@
+//Example 1.18<d>
+//determine the values of power and energy
+clc ;
+E=0;
+for n=0:200
+x(n+1)=(1/2)^n;
+end
+for n=0:200
+E=E+x(n +1)^2;
+end
+disp(E,'The energy of the signal is; ' );
+disp ('since the energy is finite, hence it is energy signal');