Calling m functions from a deployed matlab application?
7 views (last 30 days)
Show older comments
We have written and deployed a matlab standalone application that our customers can run with the MCR library. We want to give these customers the ability to write their own (M) code that can be executed using "eval" inside the deployed application. Everything works fine, unless they start using their own m functions that are not compiled with the application.
I know that m files cannot be used by eval in a deployed application unless they are compiled by the matlab compiler previously.
So I was wondering if it is possible to compile a M-function, and load it at runtime in the deployed application? I don't want to (and can't) link all of the user functions of our customers into the main application, but if the customer could compile his own functions, could it be loaded in the standalone application at runtime?
0 Comments
Accepted Answer
Chaitra
on 16 Jun 2014
If you require the ability to create MATLAB code for dynamic run time processing, your end users must have an installed copy of MATLAB. Deployable MATLAB files are suspended or frozen at the time MATLAB Compiler encrypts them—they do not change from that point onward. The MCR only works on MATLAB code that was encrypted when the component was built. Any function or process that dynamically generates new MATLAB code will not work against the MCR.
0 Comments
More Answers (1)
Yassine.Sk
on 28 Sep 2017
hello Yvon actually i have the same difficulty, i can't manipulate function selected by the user in deployed matlab, so can you share with me your solution if you have it?
0 Comments
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!