필터 지우기
필터 지우기

How do I export standalone apps with external toolboxes?

조회 수: 4 (최근 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 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