Running a MATLAB
®
Function in Applications
To run an application from the COMSOL Server™ that uses an external MATLAB function, it is recommended to embed the function M-file in the application. The Application Builder offers the possibility to upload file that can then be accessible on the server. Under the
Libraries
node, select
Files
, and in the
Files
node’s
Settings
window, click the
Add File to Library
button (
) to add the M-file to the library.
.
Applications that use external MATLAB function are not supported using the COMSOL Client. It is only possible to use such applications using a browser.
After embedding an M-file used by an existing MATLAB function, the embedded M-file will only be used for new solutions. So it is recommended to update any solutions that are saved in the application, if they depend on the embedded M-file.