필터 지우기
필터 지우기

Why does this problem occur?

조회 수: 1 (최근 30일)
new user 00
new user 00 2018년 7월 7일
댓글: Stephen23 2018년 7월 7일
I have a callback function in a gui in which i am loading a file with two fields. When i run only that(callback function) part of the code, the fields get loaded in the work space. But when i run the entire code, the work space does not show the fields to be loaded. I didn't get any error either.
  댓글 수: 3
new user 00
new user 00 2018년 7월 7일
편집: new user 00 2018년 7월 7일
thank you sooo much. I was struggling with this for a long time. You helped me solve it. Now my next problem is once the fields have been assigned to the base work space how can I use it in another callback function? I tried passing it as an argument and ended up getting "unknown variable error".
Stephen23
Stephen23 2018년 7월 7일
If you are using GUIDE then use guidata. If you are sensibly writing your own code then use nested functions.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by