主要内容

getNumElements

返回数组中元素的个数

    描述

    例子

    numElements= getNumElements (cfgAngle返回输入蓝牙的数组中元素的数量®低能(LE)角度估计配置对象。

    例子

    全部折叠

    创建蓝牙LE角度估计配置对象,指定2 × 3 URA。

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

    返回天线阵列中的元素个数。

    numElements = getNumElements(cfgAngle)
    numElements = 6

    输入参数

    全部折叠

    蓝牙LE角度估计配置对象,指定为bleAngleEstimateConfig对象。

    输出参数

    全部折叠

    数组中的元素个数,以正整数形式返回。如果SlotDuration的属性cfg输入为2 μs,输出值范围为[2,38]。如果SlotDuration属性为1 μs时,此输出值的范围为[2,75]。

    数据类型:

    参考文献

    [1]蓝牙技术网站。“蓝牙技术网站|蓝牙技术官网。”2021年11月22日访问。https://www.bluetooth.com/

    [2]蓝牙SIG (Bluetooth Special Interest Group)。“蓝牙核心规范。”5.3版。https://www.bluetooth.com/

    伍利,马丁。蓝牙测向技术概述.蓝牙特别兴趣小组(SIG),访问2020年4月6日,https://www.bluetooth.com/

    扩展功能

    C/ c++代码生成
    使用MATLAB®Coder™生成C和c++代码。

    版本历史

    R2020b中介绍