Main Content

extractAll

指定的 J1939 参数组的各个实例

说明

示例

extractedPGs = extractAll(pgrp,pgname) 返回名称出现在 pgname 中的所有参数组。

示例

[extractedPGs,remainderPGs] = extractAll(pgrp,pgname) 还返回参数组数组 remainder,其中包含原始数组中与 pgname 中的指定名称不匹配的所有组。

示例

全部折叠

提取名称为 'PG1''PG2' 的所有参数组。

extractedPGs = extractAll(pgrp,{'PG1' 'PG2'})

提取名称为 'PG1''PG2' 的所有参数组,并将不匹配的参数组返回到另一个数组。

[extractedPGs,remainderPGs] = extractAll(parameterGroups, {'PG1' 'PG2'})

输入参数

全部折叠

J1939 参数组,指定为 ParameterGroup 对象的数组。使用 j1939ParameterGroupreceive 函数创建 ParameterGroup 对象。

要提取的 J1939 参数组的名称,指定为字符向量、字符串或它们的数组。

示例: 'PG1'

数据类型: char | string | cell

输出参量

全部折叠

提取的参数组,以 ParameterGroup 对象的数组形式返回。这些参数组具有与 pgname 参量中指定的名称相匹配的名称。

剩余参数组,以 ParameterGroup 对象的数组形式返回。这些参数组的名称与 pgname 参量中指定的任一名称都不匹配。

版本历史记录

在 R2015b 中推出