A-weighting filter to lookup table
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hello,
i'm working at an embedded SPL meter, it has to filter out the audio using A-weighting.
I've build a script to test A-weighting filters, but here comes the problem.
My idea is to build a lookup table, that contains the weight value for a specific frequency, then use this table to weighting the signal using fft.
I'm investigating three filters, one build upong the fdesign function, one two using filter coefficients based functions.
I've two question and one problem:
1) is my method correct?
2) what filter table i've to use? if i test it seems that the two coef based filters differs from an offset.
download sample code here: https://www.dropbox.com/s/62ueiv3rmc8l3tc/test.zip
thank you!
1 Kommentar
Daniel Shub
am 8 Jan. 2014
It is not clear what you are doing, what you are getting, and what you expect. Without this information, it is hard to answer your question.
Antworten (4)
Wayne King
am 2 Jan. 2014
How about using
fdesign.audioweighting
if you have the DSP System Toolbox? That will give you A-weighting.
0 Kommentare
Al Hasan
am 2 Jan. 2014
Hey Davide,
Was your method correct ?
I have attached an image is that A weighted filtering
By any chance do you know what they are doing to the above image to get the below image in my attachment, I have data to make the above image dunno how to make the below one from the above
Thanks, Hasan
0 Kommentare
Davide
am 11 Jan. 2014
1 Kommentar
Daniel Shub
am 16 Jan. 2014
Okay, and what happens when you run the code? What are you expecting to happen? What would you like to happen? Ideally you should strip the code down to be as minimal as possible. Right now it looks like it should plot 3 figures. If those figures are not related to the problem, don't post that part of the code. You right to an xls file, presumably this isn't the problem. The simpiler the code, the more easily we can help you.
Siehe auch
Kategorien
Mehr zu Spectral Measurements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!