フィルターのクリア

How do I export standalone apps with external toolboxes?

1 回表示 (過去 30 日間)
Alberto Rota
Alberto Rota 2019 年 1 月 1 日
コメント済み: Alberto Rota 2019 年 1 月 5 日
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
Areej Varamban Kallan 2019 年 1 月 4 日
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 Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by