MATLAB: Use MATLAB to find the energy of x(n) = cos ( pi *n/8) and -16

energy

Use MATLAB to find the energy of x(n) = cos ( pi *n/8) and -16<n<16

Best Answer

I’ll let you define ‘energy’, but the amplitude is easy enough:
n = linspace(-16, 16);
x = cos(pi*n/8);
Related Question