Navigating The Model Object At The Command Line
Use the command mphmodel at the MATLAB® prompt to retrieve model object information, such as tags for nodes and subnodes of a COMSOL Multiphysics model object.
To get the list of the main feature nodes and the tags of the model object model, enter the command:
mphmodel(model)
To list the subfeature of the node type model.feature enter the command:
mphmodel(model.feature)
To list the subfeature node of the feature node model.feature(<ftag>), enter:
mphmodel(model.feature(<ftag>))
Use the flag -struct to return the model object information as a MATLAB structure:
str = mphmodel(model,'-struct')
str is a MATLAB structure and the fields consist of each feature node associated to the root node.