MATLAB: How to display the properties for Simulink models and blocks alphabetically using the GET_PARAM function

alphabeticalobjectorderparameterssimulinksorted

I would like the "ObjectParameters" parameter for a model or block to be displayed in alphabetical order when I display them on the command line using the GET_PARAM function as follows:
get_param(gcs, 'ObjectParameters')
These parameters are displayed in no apparent order which makes it very difficult to search for parameters.

Best Answer

The ability to display a block or system's parameters alphabetically using the GET_PARAM function is not available with Simulink. This is under consideration as an enhancement request for a future release of Simulink.
As a workaround you can obtain the system's handle and use MATLAB's Property Inspector to display the parameters alphabetically as follows:
inspect(get_param(gcs, 'handle'))