How do I export standalone apps with external toolboxes?

1 次查看(过去 30 天)
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?

采纳的回答

Areej Varamban Kallan
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 个评论
Alberto Rota
Alberto Rota 2019-1-5
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by