blob: 076106ac05855f9cc9dd0100f5f6c1e44f5fc6b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc;
//page 12
//problem 1.2
//Given signal u = 2*sin(0.5*%pi*t)
//Since u is periodic, averaging over -infinity to + infinity will give the same result as averaging over -2 to 2, where 4 is the time period.
t0 = -2;
t1 = 2;
E = integrate('(2*sin(0.5*%pi*t))^2','t',t0,t1)/4;
disp(E,'The power of the signal is ');
|