Scroll Down
Back to home
//Using MATLAB to convert narrowband data to 1/nth octave

Using MATLAB to convert narrowband data to 1/nth octave

Category : General Tools

Hi Everyone,

Lately I have been spending a lot of time with MATLAB for grad school and recently created a cool function that converts narrowband data to 1/nth octave. So if you have narrowband data from a fourier transform and you want it in 1st (i.e. 1/1) or third (i.e. 1/3) octave you can use this function to convert data. Just send it the frequency vector, the decibel vector, and what octave want. You can download the function from the MathWorks File Exchange here.

Here is the use:

[OctaveData,OctaveCenterFrequencies,Flow,Fhigh] = NarrowToNthOctave(narrowFreqArray,narrowdBArray,1)
[thirdOctaveData,ThirdOctaveCenterFrequencies,Flow,Fhigh] = NarrowToNthOctave(narrowFreqArray,narrowdBArray,3)

Cheers,
-Troy

© TMB 2023 / All rights reserved.

Close