필터 지우기
필터 지우기

Pass variable from one callback to another

조회 수: 9 (최근 30일)
Aditya
Aditya 2014년 1월 18일
댓글: Alexei 2014년 11월 14일
Hey guys, I wanted to know how to pass the value of a variable from one callback function to another withing the same GUI. Thanks.
  댓글 수: 3
Jan
Jan 2014년 1월 18일
@Vivek: No, don't do this. Poluting the base workspace is a really bad idea.
Alexei
Alexei 2014년 11월 14일
Why, what's wrong with putting a variable in the workspace? Why is that "polluting"?

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2014년 1월 18일
편집: Jan 2014년 1월 18일
This topic has been discussed very frequently, such that searching will be useful:
You will find many suggestions concerning the commands setappdata and guidata, which both store the variables locally in the GUI.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by