Finding Model Expressions
Each model object contains predefined expressions that depend on the physics interface used in the model.
The function mphsearch starts a MATLAB® GUI that displays the list of all the expressions, constants, solution variables, or parameters available in the model object. To run the function type at the MATLAB prompt:
mphsearch
This command pops-up a MATLAB GUI as in this figure:
If you have installed the COMSOL apps in the MATLAB Apps ribbon, click the COMSOL Search icon ().
If the COMSOL model objected is linked with a MATLAB object with a different name than model, enter the command:
mphsearch(modelname)
where modelname is the name of the MATLAB object.
The table has the following for each entry, the:
Name of the expression,
Expression as it is set in the property value,
Description if there is one set for the expression,
Type of the expression, and the
Path in the model object.
The Search section has a search tool to filter the list. Enter any string in the text field and select where to search the string — in the name, the expression, or the description of the table entry. You can also select the type you want to list. The expression type can be Equation, Field, Function, Geom, Mesh, Tag, VarNames, or Weak. You can select Starts with to search for any expression that start with the string enter in the text field.
Click Go to display the result of the search. Click Clear to clear the search settings.
Click Model info to get the model description in a separate window.
Click Copy to copy any entry of the table to the clipboard.
Click Close to close the mphsearch window.