DataCursorMode not compatible with deployed application?

1 回表示 (過去 30 日間)
Benjamin Vandendriessche
Benjamin Vandendriessche 2015 年 8 月 12 日
コメント済み: Steven Lord 2015 年 8 月 15 日
I use MATLAB's DataCursorMode to generate custom tooltips in a user interface (created with guide). This works fine when executed from the source code within MATLAB. However, I need a compiled version of the program for deployment to users. Everything works fine except the DataCursorMode. It displays the following error:
Error in custom datatip string function
I have a toggle in the user interface to switch DataCursorMode back on if it becomes disabled due to interference of other plot manipulation tools. This doesn't help in the compiled program.
Is it possible the MATLAB Runtime is incompatible with DataCursorMode? Any workarounds available?
  2 件のコメント
Walter Roberson
Walter Roberson 2015 年 8 月 12 日
Which MATLAB version are you using?
Benjamin Vandendriessche
Benjamin Vandendriessche 2015 年 8 月 12 日
Sorry, can't believe I forgot to mention that > R2015a

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

採用された回答

Varun Bhaskar
Varun Bhaskar 2015 年 8 月 14 日
Hello,
I just tried to compile and deploy a script containing DataCursorMode and the deployed application worked just fine. Can you give a detailed description of your workflow with a sample script maybe?
  2 件のコメント
Benjamin Vandendriessche
Benjamin Vandendriessche 2015 年 8 月 14 日
Ok, figured it out. I used a symbolic math statement to generate some of my tooltip data. Apparently these functions can't be compiled. When I stripped that part, DataCursorMode worked fine again in the deployed app.
Thanks for the replies.
Steven Lord
Steven Lord 2015 年 8 月 15 日
That is correct, Symbolic Math Toolbox is not eligible to be used with MATLAB Compiler.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApplication Deployment についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by