setappdata

Hi, I have the problem with setappdata, can I use that metod outside GUI? In my own function?
Thanks for help:)

Réponses (1)

Sean de Wolski
Sean de Wolski le 20 Déc 2011

0 votes

set to the root directory and you can access from anywhere even after the gui figure is closed.
set(0,'mydata',magic(4));
from anywhere
my_data = getappdata(0,'mydata');

1 commentaire

Walter Roberson
Walter Roberson le 20 Déc 2011
Interesting, that does work even with -nojvm

Connectez-vous pour commenter.

Catégories

Question posée :

le 20 Déc 2011

Community Treasure Hunt

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

Start Hunting!

Translated by