Azzera filtri
Azzera filtri

Modifying Cell data in GUI's (without GUIDE)

2 visualizzazioni (ultimi 30 giorni)
Hann-Shin
Hann-Shin il 30 Lug 2013
I am passing a structure(S) through my GUI and modifying one of the fields in a call back function that is a cell (S.Celldata). It seems to stick within the callback function, but reverts to the original S.Celldata when it leaves. How do I get it to stick?
Thanks!

Risposte (1)

Jan
Jan il 30 Lug 2013
When you change a variable in a callback, it is changed exactly there and nowhere else. But you can store the modified variables in the GUI's UserData or by guidata. This has been explained repeatedly in the forum, such that a search will be useful:

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by