主要内容

q2octavebw

Convert quality factor to analog octave bandwidth

Since R2026a

    Description

    N = q2octavebw(Q) converts quality factors, Q, into analog octave bandwidths, N.

    example

    Examples

    collapse all

    Convert a vector containing quality factors into octave bandwidths.

    q = [2/3 1 3];
    bw = q2octavebw(q)
    bw = 1×3
    
        2.0000    1.3885    0.4787
    
    

    Input Arguments

    collapse all

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

    Example: [4 2 5]

    Data Types: single | double

    Output Arguments

    collapse all

    Octave bandwidths, returned 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

    Algorithms

    The octave bandwidth N can be found from the quality factor Q

    N=2log2sinh1(1/(2Q).

    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