LiveLink™ for MATLAB® connects COMSOL Multiphysics to the MATLAB scripting environment. Using this functionality you can do the following:
LiveLink™ for MATLAB® includes the COMSOL API, which has all the necessary functions and methods to implement models from scratch. For each operation done in the COMSOL Desktop there is a corresponding command that is entered at the MATLAB prompt. It is a simplified syntax based on Java
® and does not require any Java knowledge. The easiest way to learn this syntax is to save the model as an M-file directly from the COMSOL Desktop. Read more about building a model using the command line in the section
Building Models.
Use LiveLink™ for MATLAB® to set model properties with a MATLAB function. For example, define material properties or boundary conditions as a MATLAB routine that is evaluated while the model is solved. Read more in
Calling External Functions.
Use the MATLAB Guide functionality to create a user-defined graphical interface that is combined with a COMSOL Multiphysics model. Make your models available for others by creating graphical user interfaces tailored to expose settings and parameters of your choice.
LiveLink™ for MATLAB® has the ability to connect to COMSOL Server™ as well as a COMSOL Multiphysics server. This means that MATLAB scripts and GUIs that utilize COMSOL functionality can be distributed to and used by any user that have access to COMSOL Server™.