File Exchange

image thumbnail

Nth Octave Frequency Bands

version 1.3.0.1 (8.19 KB) by Edward Zechmann
Calculates the 1/Nth octave center and edge frequency bands from minf to maxf.

8 Downloads

Updated 23 Feb 2019

View License

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 ezechma1@hotmail.com

Cite As

Edward Zechmann (2019). Nth Octave Frequency Bands (https://www.mathworks.com/matlabcentral/fileexchange/19033-nth-octave-frequency-bands), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

ufuk

Updates

1.3.0.1

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.

1.3.0.0

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.

1.2.0.0

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.

1.1.0.0

Updated program to satisfy ANSI S1.6 for full octave bands and third octave bands.

1.0.0.0

Fixed a bug in rounding the frequencies. Previoius version did not allow frequencies less than 1 Hz.

Fixed a bug which occurs when the frequency range [min_f, max_f] does not include 1000 Hz. Also zipped the dependent sd_round program.

Added rounding last digit to nearest
multiple of 5. Added Examples. Updated Comments.

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Octave centre frecuencies, octave

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor