Dear Glen,
It seems Mathworks has changed the API access for CGType massively since R2017b. The new API to query the CGType.Member.Name is LibCGTypeMemberName(cgTypeIdx, memberIdx) found in the following file.
MATLABROOT/rtw/c/tlc/lib/dtypelib.tlc:849:
MATLABROOT/rtw/c/tlc/lib/dtypelib.tlc-850-
MATLABROOT/rtw/c/tlc/lib/dtypelib.tlc-851-
MATLABROOT/rtw/c/tlc/lib/dtypelib.tlc-852-
MATLABROOT/rtw/c/tlc/lib/dtypelib.tlc:853:
I am not sure if you are still looking for a solution to this question. But, I believe it is one of the only questions relevant to the recent change in the CGType APIs that I found on the Google searches and yet unanswered.
I would suggest finding the rest of the changed APIs by grep-ing through the installed TLC files in R2018a.
Hope this helps!
Siraj
Best Answer