input command makes figures irresponsive in Matlab R2016a

1 回表示 (過去 30 日間)
Arabarra
Arabarra 2016 年 10 月 12 日
コメント済み: Arabarra 2016 年 11 月 24 日
Hi,
I have a major problem with matlab R2016a. As it turns out, while the prompt is executing an "input" command, the figures that have been created before became irresponsive.
If one launches the following piece of code:
function myTest();
localFigure();
input('Now the figure menu will be irresponsive until you press some key! > ', 's');
function localFigure();
h = figure('menubar','none');
hmenu = uimenu(h,'Label','this is a menu');
hsubmenu = uimenu(hmenu,'Label','this is a submenu');
... one sees that while the input prompt is open, clicking on the menu tab (object tagged 'hmenu' in the code) of the created figure does not trigger the submenu (tagged 'hsubmenu').
This is a real problem for my real code. This real code works like a console (effectively an 'input' command inside a 'while/end' loop) where the user types commands that are interpreted by the code to launch different GUIs with different parameters. If previously launched GUIs become disabled while the console (i.e. an input command) is executed, my code is basically useless. Previous releases of Matlab did not present this issue, and my code ran smoothly. Now I am rather puzzled.... any idea on how to overcome this issue?
thanks! Daniel

採用された回答

Soma Ardhanareeswaran
Soma Ardhanareeswaran 2016 年 10 月 20 日
編集済み: Soma Ardhanareeswaran 2016 年 10 月 20 日
This is a bug in MATLAB R2016a. Please refer to https://www.mathworks.com/support/bugreports/1379371
  1 件のコメント
Arabarra
Arabarra 2016 年 11 月 24 日
Thanks soma. They actually corrected it in R2016b, but not in deployed applications.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeJust for fun についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by