Modifying Cell data in GUI's (without GUIDE)

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!

답변 (1개)

Jan
Jan 2013년 7월 30일

0 개 추천

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:

카테고리

도움말 센터File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기

태그

질문:

2013년 7월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by