The 'bdroot' function can not be read when I convert my GUI program to exe

Hello, now I have a GUI guide program which includes 'bdroot' function in its m-file. After I convert my program to .exe file using command 'mcc -m mymfilename'(or deploytool),I acturally get an .exe file but when I run it, the result shows that the funtion 'bdroot' was not defined.(Note that there is another way to do the conversion using deploytool, but the outcome .exe does not work well either due to no response.) what should I do now?
Any answers or comments will be appreciated. Thank you in advance.

 採用された回答

Kojiro Saito
Kojiro Saito 2018 年 8 月 7 日
Is 'bdroot' function you mentioned is Simulink function bdroot?
If so, as this Ineligible Programs page says, Simulink functions are ineligible with MATLAB Compiler and bdroot cannot be used in compiled application.
If 'bdroot' means your custom function, you can add dependencies by mcc '-a' options.
mcc -m mymfilename.m -a youbdrootfunction.m

1 件のコメント

Micheal.ZHANG
Micheal.ZHANG 2018 年 8 月 7 日
@saitoさん, Firstly thank you for your reply, as your mentioned, the 'bdroot' here I used is the Simulink function. Consider that it can not be recognized by MATLAB complier, is there any way (for example,alternative function instead of 'bdroot'?)to relize my purpose of model retrieval using .exe?
若しどうやってもいけないと諦めるのではないのでしょうか....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeConfigure and View Diagnostics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by