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..