Main Content

extractRecent

Occurrences of most recent J1939 parameter groups

Description

extractedPGs = extractRecent(pgrp) returns the most recent instance of each unique parameter group found in the array pgrp, based on the parameter group timestamps.

example

extractedPGs = extractRecent(pgrp,pgname) returns the most recent instance of parameter groups whose names match any of those specified in pgname.

example

Examples

collapse all

Extract the most recent of each parameter group.

extractedPGs = extractRecent(pgrp)

Extract the most recent of each parameter group named 'PG1' or 'PG2'.

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

Input Arguments

collapse all

J1939 parameter groups, specified as an array of ParameterGroup objects. Use the j1939ParameterGroup or receive function to create ParameterGroup objects.

Names of J1939 parameter groups to extract, specified as a character vector, string, or array of these.

Example: 'PG1'

Data Types: char | string | cell

Output Arguments

collapse all

Extracted parameter groups, returned as an array of ParameterGroup objects.

Version History

Introduced in R2015b