If I am in an UserInterface and here perform what I want; after that I want to go in another UI with all the result obtained.

I am using pushbuttons. Surprisingly in the new UI I have not the previous data. I can export the data and after that import them in the new UI. But I look for a better solution ....

Answers (2)

Transporting the data from one GUI to the other is the best solution already. So it only depends on what "export" and "import" exactly means.
One method is to use a global variable (see "help global"). I prefer to store the variable in the GUI's UserData, ApplicationData (see "help setappdata") or by GUIDATA (see "help guidata"). Then the GUI needs a subfunction to reply the values on demand.
I suggest to take a look at Matt Fig's GUI examples: FEX: 41. Example 35 might help. But it is a good idea to study all examples.

This question is closed.

Asked:

on 19 Jul 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!