Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MATLAB GUI with more than 1 Window

Status
Not open for further replies.

superdren

Automotive
Jun 1, 2007
1
Hi,
I have to develop a Matlab Gui with 3 together working windows.
The user will have to browse between them all the time and choose different options which change the draws in the other 2 windows.
Does somebody have an idea if and how does it function? In the Matlab Gui Tutorials I've seen, are only solutions with 1 main gui window and different plot windows.
The Guide assistant offers also just solutions with one gui `.fig´ window.

:)
 
Replies continue below

Recommended for you

I have also been wondering that. The only way that I have thought of to do it doesn't seem like a good one but it will work.

The way i do it is to retrieve all my attributes and data from one gui and package it into the next gui using the userdata everytime I open the other window. when the other window needs to update something on the other one it closes the other one and opens a new instance of that gui with all the parameters set to what was in the userdata with some modified as desired. i.e. it starts the gui but sets the userdata and in the other gui's creation routine it retrieves the info from its userdata and sets all its attributes.

maybe set up a protocol between the three guis giving a "state" number to each of the combinations of attributes and then they can simply update each other by closing and opening in a particular state. appending any and all data to be passed onto the end of the state(not sure if that makes sense to you)

I don't think that this is a very efficient way to do this and it will take a while to get working properly provided it would even work in your situation.

If anyone else knows a way to do it I would be very interested to know how so please message me with the info too.

Tyrone
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor