COMSOL Multiphysics® Installation Guide > Running COMSOL on Linux > Running COMSOL with MATLAB

Running COMSOL with MATLAB
Running COMSOL 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 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.
sudo apt-get install xterm csh
sudo yum install xterm tcsh
sudo zypper install xterm tcsh