Use a MATLAB functions node (
) from COMSOL Multiphysics
to interface to functions written in MATLAB. These functions can be used as any other function defined in COMSOL Multiphysics. MATLAB functions are evaluated in MATLAB.
Under Functions, add the names of the MATLAB functions in the
Function name column, and for each function in the table, enter a space-separated or comma-separated list of the names of its input
Arguments (
x y, for example).
Click the Clear Functions button to force a reload of the functions if they have been edited. Alternatively, you can select the
Clear functions automatically before solving check box.