Can GUI files share data?

2 Ansichten (letzte 30 Tage)
María
María am 19 Apr. 2013
Hello! I'm making an interface using GUI. It has to read some points and make a plot with it and, if I push a button it should move to another interface (another GUI file) and, using the same data, generate a different plot. My question is, is that possible? Can different files share a point and how do I send this point to the second file?
Sorry if it sound a bit far-fetched

Antworten (2)

Sabarinathan Vadivelu
Sabarinathan Vadivelu am 19 Apr. 2013
Yes, You can do. Declare the variables which you need to plot as global. Then you just call the other file. There you can plot.
  1 Kommentar
María
María am 19 Apr. 2013
It isn't working. Where should I put the global declaration?

Melden Sie sich an, um zu kommentieren.


Image Analyst
Image Analyst am 19 Apr. 2013
  8 Kommentare
Image Analyst
Image Analyst am 21 Apr. 2013
Bearbeitet: Image Analyst am 21 Apr. 2013
Please upload screenshots of both your GUIs to http://snag.gy. Click on your GUI to make it active. Type alt-Printscreen to capture the active window into the clipboard. Then go to snag.gy and type control-v. Repeat for your second GUI, and tell me the urls for both windows.
María
María am 22 Apr. 2013
This is the first GUI and in the function in the left is the one osed in button "Posición", which has a callback to "interfaz_posicion" and should do the function "posicion(po,pf,t)"
This one is with the data on GUI1
And this one is when I push button "Posicion", it opens another GUI but with no function, and the command window doesn't show any message or error

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Just for fun finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by