How can i find the centroid of the wavelet coefficients from each frame of the audio signal?
1 view (last 30 days)
Show older comments
Hi,i have to find the centroid of the wavelet coefficients for each frame of the audio signal.,i've applied wavedec to decompose the audio into 5 levels CA5,CD1,CD2,CD3,CD4,CD5 from that i have to find the energy and centroid of the wavelet coefficients.Is there anybody know about this?
4 Comments
Answers (1)
Wayne King
on 8 Oct 2012
Edited: Wayne King
on 8 Oct 2012
You can use wenergy() to find the energy in the output of wavedec()
load noisdopp;
[C,L] = wavedec(noisdopp,5,'sym4');
[Ea,Ed] = wenergy(C,L);
What do you mean by centroid? The mean? You can do that with detcoef() although the mean of the detail coefficients will be close to zero at each level I would suspect.
details = detcoef(C,L,'cells');
centroids = cellfun(@mean,details);
See Also
Categories
Find more on Signal Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!