mphsave
Save a COMSOL model as a file.
Syntax
mphsave(model)
mphsave(model,filename,...)
mphsave(filename)
mphsave(mtag)
mphsave(mtag,filename,...)
Description
mphsave(model) saves model as a COMSOL MPH-file.
mphsave(model,filename,...) saves model to the file named filename.
mphsave(filename) saves the unique model that is loaded in the COMSOL server to the file named filename.
mphsave(mtag) saves the model loaded in the COMSOL server with the tag mtag.
mphsave(mtag,filename,...) saves the COMSOL model loaded in the COMSOL server with the tag mtag to the file named filename.
The function mphsave accepts the following property/value pairs:
on | off
on | off
on | off
fullpath | name | path
size | speed
on | off
If the filename is not provided, the model has to be saved previously on disk.
If the filename does not provide a path, the file is saved relatively to the current path in MATLAB®.
The model can be saved as an MPH-file, Java file, or M-file. The file extension determines which format that is saved.
Note: Model created with older version than COMSOL 5.3 cannot be saved using the component syntax.
See also
mphopen, mphload, mphthumbnail, mmsave