Show the command window from engine application on Mac

3 ビュー (過去 30 日間)
Szabolcs
Szabolcs 2013 年 2 月 19 日
Is it possible to show the MATLAB command window when using a MATLAB Engine application, and running on OS X? (I know there's engSetVisible() but it only works on Windows.)
The reason I'm asking is that I noticed that most GUI elements do work: I can create a figure, show the documentation window using 'doc' or the command history window using 'commandhistory'. The 'commandwindow' command seems to do nothing though.
  3 件のコメント
Szabolcs
Szabolcs 2013 年 2 月 19 日
@Amro That actually works and it shows the command window! But it also breaks the engine session (engine functions won't return any more). I guess this is a hard limitation on OS X / Linux due to how the engine sends commands to MATLAB (the connection is through a unix pipe, but I'm not sure about the details).
Is there a similar command for hiding it? I'm just curious if it'd restore engine functionality (probably not).
Amro
Amro 2013 年 2 月 19 日
編集済み: Amro 2013 年 2 月 19 日
try this, no guarantees :)
com.mathworks.mde.desk.MLDesktop.getInstance.getMainFrame.setVisible(0)

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeCall MATLAB from C についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by