Clear Filters
Clear Filters

How do I export standalone apps with external toolboxes?

1 view (last 30 days)
I'm creating an applicaton (with the App Designer instrument) that analyses the transfer function given as an input by the user, showing bode plots, response to an input signal etc. The app works just fine while i run it from the App Designer, but i'd prefer it as a standalone app that can be run from my desktop. The problem is that the app compiles, but as soon as I input the the transfer function i need to analyse, an error shows up concerning the symbolic toolbox: "Undefined function 'syms' ". The line in the code that causes it it the following:
syms s;
symtf = eval(inp);
where symtf contains the symbolic expression of the transfer funcion given as a string in inp. Running the appliation from the 'Run' button in the App Disegner window doen't produce this error. I'm guessing that the app isn't including the Symbolic Math toolbox used to perform this operation while creating the standalone app executable. How do I solve this problem? Should I use a different method to evaluate the symbolic expression given as a string?

Accepted Answer

Areej Varamban Kallan
Areej Varamban Kallan on 4 Jan 2019
Hi Alberto,
The Matlab Compiler which is used to create standalone executable does not support Symbolic Math Toolbox. This mentioned in the documentation also.
  1 Comment
Alberto Rota
Alberto Rota on 5 Jan 2019
Thank you Areej.
This explains the issue. At this point I must ask: is there any method that allows to convert the text contained in a string (or char array) into a Matlab command bypassing the 'eval' function? Specifically, I need to create a transfer function that corresponds to the one that the user writes into an editable text field.
If I have to post this as a separate question on the forum, I will.

Sign in to comment.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!