matlab-app-designer

How to get the handles of all open App Designer apps (uifigures)?

↘锁芯ラ 提交于 2019-12-11 12:03:47
问题 As mentioned in a related answer, it is possible to get the handles of all open figures using: hFigs = findall(groot, 'Type', 'figure'); but this results in a list that contains both "old" figure and "new" uifigure handles. How can I separate hFigs into two lists, one containing only figure and the other only uifigure references? 回答1: To distinguish between figure and uifigure objects programatically, we can use a slight adaptation of what I suggested here: function tf = isUIFigure(hFigList)

addChild for uifigure components

隐身守侯 提交于 2019-12-11 11:29:08
问题 I'm trying to develop my first GUIs with uifigure (programmatically, not with appdesigner [but I have added it as a keyword since it is related]), and (as expected) I'm missing some of the extended features and widgets as provided by the GUI Layout Toolbox and the Widgets Toolbox for standard java figures. Thus, I tried to change some widgets that I had developed to uifigure , and uigridlayout seems to be quite handy to replace the uix.VBox and uix.HBox from the GUI Layout Toolbox. For

UIAxes' YLim property cannot be listened to

為{幸葍}努か 提交于 2019-12-03 21:23:35
问题 MATLAB provides the addlistener function. Listeners allow us to keep track of changes of an object's properties and act upon them. For example, we can create a very simple listener that will display a message in the command window when the 'YLim' property of an axes object is changed: % Example using axes ax = axes(); addlistener(ax, 'YLim', 'PostSet', @(src, evnt)disp('YLim changed')); Try panning the axes or zooming in/out and see what happens. This works fine. I need to do the same but

UIAxes' YLim property cannot be listened to

 ̄綄美尐妖づ 提交于 2019-11-30 22:53:53
MATLAB provides the addlistener function. Listeners allow us to keep track of changes of an object's properties and act upon them. For example, we can create a very simple listener that will display a message in the command window when the 'YLim' property of an axes object is changed: % Example using axes ax = axes(); addlistener(ax, 'YLim', 'PostSet', @(src, evnt)disp('YLim changed')); Try panning the axes or zooming in/out and see what happens. This works fine. I need to do the same but using an uiaxes instead. Unfortunately, it looks like we are not allowed to do so. Try running the