Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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

1 Ansicht (letzte 30 Tage)
ER2018
ER2018 am 7 Nov. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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?

Antworten (1)

Sean de Wolski
Sean de Wolski am 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 Kommentare
Steven Lord
Steven Lord am 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.

Community Treasure Hunt

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

Start Hunting!

Translated by