https://in.mathworks.com/help/vnt/ug/j1939.parametergroup.extractall.html
extractAll - Occurrences of specified J1939 parameter groups - MATLAB
This MATLAB function returns all parameter groups whose name occurs in pgname.
occurrencesspecifiedparametergroupsmatlab