Define output of a callback function

조회 수: 9 (최근 30일)
Gustl
Gustl 2011년 9월 8일
Is there any way to define the output variables of callback function in order to pass the variable to base workspace?

답변 (2개)

Grzegorz Knor
Grzegorz Knor 2011년 9월 8일

Jan
Jan 2011년 9월 8일
I strongly suggest not to do this. Writing variables to the base workspace will lead to confusions and impedes the debugging dramatically.
It is much better to store values in the GUI's UserData or application data (see "help setappdata" and "help guidata") and get them by a dedicated funtion from the GUI on demand.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by