Creating a Custom GUI
You can use the MATLAB® Guide or App Designer functionality to create a GUI and connect the interface to a COMSOL Multiphysics model object. Each operation in the GUI sets the value of a MATLAB variable or calls a MATLAB command. You can call commands at the MATLAB prompt to set up a COMSOL model object or set MATLAB variables in the COMSOL model object.
The figure below illustrates a GUI made in MATLAB and linked to a COMSOL model object.
The simplified GUI only allows the user to compute a heat transfer problem on a given geometry. The user can only change the radius and the position of the bottom circle geometry. The heat source applied to the bottom circle is also defined by the user.
The button executes the building operation of the geometry and mesh. Another button executes the computation of the solution.