What made it much easier to me was applying this command:
k = (10/3)*sum((abs(fft(rXR_exp)))')/N;
plot(k);
!0/3 is an experimental constant which is working fine for me.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!