Running COMSOL Multiphysics with MATLAB
Running COMSOL Multiphysics with MATLAB starts a COMSOL Multiphysics server and a MATLAB Desktop. No COMSOL graphical user interface is involved. For a tutorial, see the
LiveLink for MATLAB User’s Guide
.
To launch MATLAB and connect it to a COMSOL Multiphysics server, run the command
comsol mphserver matlab
Starting comsol Multiphysics with Matlab using the graphics server
To display the plot in a COMSOL graphics window you need to run COMSOL with MATLAB using the graphics server. To do so, start COMSOL with MATLAB from a terminal window with the
-graphics
flag:
comsol mphserver matlab -graphics
Required Programs for Running COMSOL with MATLAB
The
xterm
program is necessary for the command
comsol mphserver matlab
. The
csh
program is needed to call MATLAB functions from COMSOL Multiphysics.
•
To install the missing packages on Debian and Ubuntu, type
sudo apt-get install xterm csh
•
To install the missing packages on RedHat Enterprise and Fedora, type
sudo yum install xterm tcsh
•
To install the missing packages on OpenSUSE, type
sudo zypper install xterm tcsh