blob: a20487216695ebef2989439c8608a08031c3b24b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//EXAMPLE 2.7,Example of Power signal
clear ;
clc ;
Sum=0;
N=1:10000;
for i=1:length(N)
h1= 3*((-1)^i);
h=h1^2;
end
Energy = sum(h);
if (Energy/(2*(length(N))+1)<%inf ) then
disp ('Power Signal') ;
disp(Energy/2,'Power Signal = ');
else
disp ('Not a Power Signal') ;
end
|