How to make 2 gui sharing the same handles structure

11 次查看(过去 30 天)
Hello,
I am pretty happy with my way to build up GUI with matlab except that I would like have the possibility to not have "one thousand" edit boxes, or else, impeding my camera display for instance: have to reduce the size of my display for including edit boxes; and in general it is something I would like to do for other hardware control: one window/figure per hardware.
What I would like is to be able, by a pushbutton for exemple, to open an other window which contains a bunch of parameters to set. I can either let it open while it is still updating my main GUI and these values can be initialised from the main too.
Thanks for your suggestions.

采纳的回答

Allen
Allen 2021-3-1
If you are using GUIDE to build your applications, then my suggestion would be to create a separate "Parameters" GUI application that opens with the callback for the push-button. You can pass the handles variable and/or just the necessary separate variables input the opening function of the "Parameters" application. After completing your adjustments to the parameters, then you can pass the necessary variables back to the main GUI with a push-button or closing function callback.
If you are using App Designer this becomes a bit more straight forward and can be accomplished by using the tab-panel object and placing your parameter edit boxes on their own tab window.
  6 个评论
Allen
Allen 2021-3-12
Tutu,
While trying to find documentation describing how the uiwait and uiresume functions are utilized within GUIDE GUIs, I came across the discussion in the link below. I have not tried to use this method, but have some familiarity with using setappdata and getappdata functions and think this may be a more simple approach.
setappdata(0,'MyStruct',Struct)
getappdata(0,'MyStruct')

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by