Get 1/N octave bands.
band=get_octave_bands(fmin,fmax)
band=get_octave_bands(fmin,fmax,n)
band=get_octave_bands(fmin,fmax,'silent','ansi')
band=get_octave_bands(fmin,fmax,n,'silent','ansi')
GET_OCTAVE_BANDS returns the 1/N octave bands defined from the minimum and maximum frequencies supplied. If N is not specified, it will default to 1.
The optional input argument 'silent' suppresses output.
By default OCTAVEN does not use the "preferred" frequencies. Instead, the following formulas are used:
center = 1000*2^(i/N)
where i = 0 for f0 = 1000 Hz
lower = center / 2^(1/2/N)
upper = center * 2^(1/2/N)
To use the ANSI/ISO standard frequencies defined in ISO R 266 and ANSI S1.6-1984, pass in the string 'ansi'. If octave or third octave reduction is requested, the standard frequencies will be used. Otherwise OCTAVEN will issue a warning and use the above formulas instead.
The output structure BAND contains the 1/N octave band data. Fields are
.center | Vector of center frequencies for each band |
.lower | Vector of starting frequencies for each band |
.upper | Vector of ending frequencies for each band |
.ansi | Logical specifying whether ANSI frequency bands were used |