This program calculates the 1/N-octave-band center and edge frequencies from min_f to max_f (Hz). The exact and nominal frequencies are output in arrays. The nominal frequencies are also output in a cell of string of characters for plotting purposes.
This program satisfies the frequency band requires established in ANSI S1.6 and ANSI S1.11.
If you find a bug or have a question please post a comment or send an email to email@example.com
Edward Zechmann (2023). Nth Octave Frequency Bands (https://www.mathworks.com/matlabcentral/fileexchange/19033-nth-octave-frequency-bands), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Added the reference frequency, fr as an input variable and optimized the removal of fractional-octave-bands outside the range of min_f to max_f.
Revised the number of significant digits calculation for rounding. Limited the number of bands per octave from 1 to 10E12. A warning is issued if the number of bands is greater than 10E6.
Modified the even octave bands to have 1000 Hz as an edge frequency. Changed the number of significant digits calculation for rounding. Limited the number of bands per octave from 1 to 43.
Updated program to satisfy ANSI S1.6 for full octave bands and third octave bands.
Fixed a bug in rounding the frequencies. Previoius version did not allow frequencies less than 1 Hz.