About The Model Object
The model object contains all the information about a model, from the geometry to the results. The model object is defined on the COMSOL Multiphysics server and can be accessed at the MATLAB command line using a link in MATLAB.
1
Start COMSOL with MATLAB
2
Start modeling by creating a model object on the COMSOL Multiphysics server. This is done by entering the following command on the MATLAB command line:
model = ModelUtil.create('Model');
The model object on the COMSOL Multiphysics server has the tag
Model,
while the variable
model
is its link in MATLAB.
To access and modify the model object, use the COMSOL API syntax. You can get the documentation of a specific API command with the function
mphdoc
.
3
To get the documentation of the node model from the
COMSOL Programming Reference Manual
, enter:
mphdoc(model)
4
To get the documentation of the geometry feature WorkPlane, enter:
mphdoc(model.geom,'WorkPlane')