Main Content

getNumElements

Number of elements in antenna array

    Download Required: To use getNumElements, first download Communications Toolbox™ Library for the Bluetooth® Protocol. For more information, see Get and Manage Add-Ons. Alternatively, see Communications Toolbox Library for the Bluetooth Protocol File Exchange.

    Description

    example

    numElements = getNumElements(cfg) returns the number of elements in the antenna array for the input BLE angle estimation configuration object.

    Examples

    collapse all

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

    cfg = bleAngleEstimateConfig('ArraySize',[2 3])
    cfg = 
      bleAngleEstimateConfig with properties:
    
               ArraySize: [2 3]
          ElementSpacing: 0.5000
            SlotDuration: 2
        SwitchingPattern: [1 2 3 4]
    
       Read-only properties:
        No properties.
    
    

    Return the number of elements in the antenna array.

    N = getNumElements(cfg)
    N = 6
    

    Input Arguments

    collapse all

    BLE angle estimation configuration object, specified as a bleAngleEstimateConfig object.

    Output Arguments

    collapse all

    Number of elements in the antenna 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, 2019. https://www.bluetooth.com/.

    [2] Bluetooth Special Interest Group (SIG). "Bluetooth Core Specification." Version 5.1. 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™.

    Introduced in R2020b