Extracting Results at the MATLAB® Command Line
LiveLink™ for MATLAB® packages several functions to make it easy to access results directly from the MATLAB command line. The most commonly used functions are:
mphinterp, to evaluate expressions at arbitrary location.
mpheval, to evaluate expressions on all node points of a given domain selection.
mphglobal, to evaluate global expressions.
mphint2, to integrate the value of expressions on selected domains.
mphmax, mphmin, and mphmean, to evaluate the maximum, minimum, and average, respectively, of an expression.
mphgetexpressions, to get the model variables and model parameters expressions.
mphevaluate, to evaluate parameter expressions (constants) in models.
Note: For a complete list of the available functions see the section Summary of Commands in the LiveLink for MATLAB User’s Guide.
Load the busbar model from the application library directly at the MATLAB command line.
1
2
mphopen busbar
The mphopen command automatically searches the MATLAB path as well as the path for the application libraries to find the requested file. You can also specify the path in the filename. When specifying the mphopen command on the MATLAB command line you can enter mphopen and space. Then press the TAB-key to get a list of the MPH-files in the current directory.