Main Content

octavebw2q

Convert analog octave bandwidth to quality factor

Since R2026a

    Description

    Q = octavebw2q(N) converts analog octave bandwidths, N, to quality factors, Q.

    example

    Examples

    collapse all

    Convert a vector of octave bandwidths into quality factors.

    bw = [1 1/3 1/4];
    q = octavebw2q(bw)
    q = 1×3
    
        1.4142    4.3185    5.7636
    
    

    Input Arguments

    collapse all

    Octave bandwidths, specified as a positive-valued vector. The octave bandwidth is the ratio of upper to lower limits of the bandwidth expressed as a power of two.

    Data Types: single | double

    Output Arguments

    collapse all

    Quality factors, returned as a positive-valued vector having the same size as N. The quality factor is the ratio of a filter's center frequency and bandwidth.

    Data Types: single | double

    Algorithms

    The analog octave bandwidth N is the ratio of the upper to lower band limits written as a power of two. The quality factor Q is derived from N by

    Q=2N2N1.

    This equation applies only to analog frequencies.

    Extended Capabilities

    expand all

    C/C++ Code Generation
    Generate C and C++ code using MATLAB® Coder™.

    Version History

    Introduced in R2026a