Problem with Matlab Standalone Application

18 views (last 30 days)
Good morning to everyone.
I have developed an application in Matlab appdesigner but unfortunately at the time of exporting it as a desktop application, it doesn't work properly and I think it's because it's not exporting certain functions ("cell2sym, solve, str2sym, subs, syms") that I use in my code. How could I fix it? Make use of those functions frequently in my code. Thank you !
mcc -o ShaftDesign -W 'WinMain:ShaftDesign,version=1.0' -T link:exe -d D:\Programs\Matlab\AppDesigner\Tesina3_1\for_testing -v D:\Programs\Matlab\AppDesigner\Tesina2.mlapp -r 'C:\Program Files\Polyspace\R2020a\toolbox\compiler\resources\default_icon.ico'
Compiler version: 8.0 (R2020a)
Dependency analysis by REQUIREMENTS.
Warning: In "D:\Programs\Matlab\AppDesigner\Tesina2.mlapp", "cell2sym, solve, str2sym, subs, syms" are excluded from packaging for the MATLAB Runtime environment according to the MATLAB Compiler license. Either remove the file or function from your code, or use the MATLAB function "isdeployed" to ensure the function is not invoked in the deployed component.
Parsing file "D:\Programs\Matlab\AppDesigner\Tesina2.mlapp"
(referenced from command line).
Generating file "D:\Programs\Matlab\AppDesigner\Tesina3_1\for_testing\readme.txt".
Packaging...
Creating the bundle...
Creating the install agent URL file...
Web based installer created at D:\Programs\Matlab\AppDesigner\Tesina3_1\for_redistribution\MyAppInstaller_web.exe.
Packaging complete.
Elapsed packaging time was: 46 seconds.

Accepted Answer

Walter Roberson
Walter Roberson on 28 Sep 2020
Symbolic Toolbox can never be compiled.
  7 Comments
Junior Joel Aguilar Hancco
Edited: Junior Joel Aguilar Hancco on 29 Sep 2020
Hello again!
Maybe you can tell me if there is a possibility that I can apply the solution you propose, in my app.
As you can see, this is the interface of my program, and it only admits numerical values by the user, from which, by means of my algorithm, a series of equations are generated.
These equations (generally a lot of equations) need to be integrated twice, so I generate two constants (for each equation, which I add them with "SYM", since the "INT" function does not generate them automatically) that I have to calculate, through of a large equations' system(here I use "SOLVE"). Once the values of these constants are calculated, they need to be replaced in their original functions, because then I will have to plot them with "FPLOT" through cycles, because as I mentioned before, my program is dynamic and adapts to all possible calculation cases that the user can define and want to solve.
All this process, which is a summary in fact, is necessary for the calculation of main efforts on power transmission shafts, which is the objective of my program and is a very important issue in the design of machine elements. The manual calculation is very tedious and extensive, so sometimes I use approximations that facilitate the calculation but add errors in the results, that's why I have been working a lot on this project. Thanks for responding!
Juliana Manrique
Juliana Manrique on 21 Oct 2020
Is it not posiible for it to run an App with functions from Symbolic toolbox through the Matlab Web App Server?

Sign in to comment.

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!