MATLAB: Is there anyway to get all adjustable parameters of a Simulink model to Matlab workspace

block parametersimulink

The get_param('Model/Block_Name','Parameter') only returns the specific 'Parameter' from Simulink model to workspace. For example, g_svalue=get_param('simple/Gain','Gain') returns the value of Gain to workspace.
However, I would like to have a command/way to get all adjustable parameters of a block to workspace? Commnad like get_param('Simple/Gain','All') or get_param('Simple/Gain','*')?

Best Answer

get_param('mymodel/myblock','ObjectParameters')