Main Content

getNumElements

Return number of elements in array

    Description

    example

    numElements = getNumElements(cfgAngle) returns the number of elements in the array for the input Bluetooth® low energy (LE) angle estimation configuration object.

    Examples

    collapse all

    Create a Bluetooth LE angle estimation configuration object, specifying a 2-by-3 URA.

    cfgAngle = bleAngleEstimateConfig('ArraySize',[2 3])
    cfgAngle = 
      bleAngleEstimateConfig with properties:
    
                ArraySize: [2 3]
           ElementSpacing: 0.5000
        EnableCustomArray: 0
             SlotDuration: 2
         SwitchingPattern: [1 2 3 4]
    
    

    Return the number of elements in the antenna array.

    numElements = getNumElements(cfgAngle)
    numElements = 6
    

    Input Arguments

    collapse all

    Bluetooth LE angle estimation configuration object, specified as a bleAngleEstimateConfig object.

    Output Arguments

    collapse all

    Number of elements in the array, returned as a positive integer. If the SlotDuration property of the cfg input is 2 μs, the value of this output is in the range [2, 38]. If the SlotDuration property is 1 μs, the value of this output is in the range [2, 75].

    Data Types: double

    References

    [1] Bluetooth Technology Website. “Bluetooth Technology Website | The Official Website of Bluetooth Technology.” Accessed November 22, 2021. https://www.bluetooth.com/.

    [2] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.3. https://www.bluetooth.com/.

    [3] Wooley, Martin. Bluetooth Direction Finding: A Technical Overview. Bluetooth Special Interest Group (SIG), Accessed April 6, 2020, https://www.bluetooth.com/.

    Extended Capabilities

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

    Version History

    Introduced in R2020b