I have filtered my wav sound in a specific band with the butterworth bandpass filter. Now i want to calculate the intensity of that sound in the specific band.
[B1,A1] = butter(4,[10 635]/(fs_orig/2),'bandpass');
freqz(B1,A1) %The frequency response of your filter1
dataIn = x1; %your music
dataOut1 = filter(B1, A1, dataIn); % // filter command filters your music
So first have to calculate the rms value of the specific band?
rms1 = rms(dataOut1)
this gives me rms between 10 and 625 hz. But how should I calculate it into dB when 0 db corresponding to an rms value of 1?