I want to find the energy of this signal in rolling windows.
Note that the energy of a signal x[n] overlapping by a window w[n] is given by the following formula:
where as signal w[n] I will use the Hamming window given by the equation:
I will use window length N = 1000 samples.
I run the below code but without result.
[y,Fs] = audioread('viola_series.wav');
title('Audio viola series.wav');
N = 1000;
y_norm = (y-min(y))/range(y)*2-1;
title('Normalized audio viola series.wav');
w = hamming(1001);
energy_signal = symsum(conv(y_norm.^2,w),m,0,10);
How to do that?
Thanks in advance