Info

This question is closed. Reopen it to edit or answer.

any workaround for deploying applications allowing users to define custom functions?

4 views (last 30 days)
I'm developing a deployed application using Matlab 2018a. The application allows the users to perform multiphysics simulations.
In some cases, it is of interest to allow users to define their own functions, for example for material properties or for post-processing.
From this good post (and others), I know that I can't use the ADDPATH function in deployed applications:
https://blogs.mathworks.com/loren/2008/08/11/path-management-in-deployed-applications/
I understand the rationale: a deployed application should behave predictably and not be allowed to change its behavior. But in this application, users WANT the application to be customizable.
Do you have any idea? Is it completely crazy to try and find a workaround?

Answers (1)

Sean de Wolski
Sean de Wolski on 7 Nov 2018
If they want it to be customizable, then they need a MATLAB license and you can just give them the source code for the app so addpath etc. work.
  4 Comments
Steven Lord
Steven Lord on 7 Nov 2018
Depending on the specific details of your application, generating pcode for your application and sending them the protected file(s) to run inside MATLAB may be an option.

This question is closed.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!