frameZeroMean

Make a frame zero mean by using polyfit

Contents

Syntax

Description

frameZeroMean(frameMat, polyOrder) returns the frame matrix after mean subtraction

This function is usually used before computing volume, hod, etc.

Example

waveFile='star_noisy.wav';
au=myAudioRead(waveFile);
epdPrm=epdPrmSet(au.fs);
for i=0:3
	figure;
	subplot(3,1,1); plot(au.signal); title('Original');
	frameMat=buffer2(au.signal, epdPrm.frameSize, epdPrm.overlap);
	frameMat=frameZeroMean(frameMat, i);
	y2=frameMat(:);
	subplot(3,1,2); plot(y2); title(['Order=', int2str(i)]);
	subplot(3,1,3); plot(au.signal-y2); title('Difference');
end

Top page   Next: frame2volume.m   Prev:gabor2.m