19-08-2013, 04:56 PM
OCTAVE APPLICATIONS TO SIGNALS &SYSTEMS
OCTAVE APPLICATIONS.pptx (Size: 77.71 KB / Downloads: 15)
Signal Energy and Power
In a similar way, we can compute the signal energy (sum of squared moduli) using any of the following constructs:
Ex = x(' * x( Ex = sum(conj(x() .* x() Ex = sum(abs(x().^2) The average power (energy per sample) is similarly Px = Ex/N. The norm is similarly xL2 = sqrt(Ex) (same result asxL2 = norm(x)). The norm is given by xL1 = sum(abs(x)) or by xL1 = norm(x,1). The infinity-norm (Chebyshev norm) is computed as xLInf = max(abs(x)) or xLInf = norm(x,Inf). In general, norm is computed by norm(x,p), with p=2being the default case.