showing matlab plot on intellij (java)

1 回表示 (過去 30 日間)
Tino
Tino 2019 年 7 月 19 日
回答済み: Kojiro Saito 2019 年 7 月 22 日
Hi Please I recently converted my matlab code to java using library compiler. After compiling I was able to run the code perfectly. The graphical part compiled very well but cannot show any graphical images as when it is in matlab codes. It tries to show the graphical dialog images but disappears. How do I fix this Your help will be greatly appreciated Thanks Tino

採用された回答

Kojiro Saito
Kojiro Saito 2019 年 7 月 22 日
It's because waitForFigures is needed for the figure to draw completely before it is destroyed.
You can find the Java sample code in this document as the bottom Note says "To see what happens without the call to waitForFigures, comment out the call, rebuild the application, and run it. In this case, the figure is drawn and is immediately destroyed as the application exits."

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeJava Package Integration についてさらに検索

タグ

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by