필터 지우기
필터 지우기

in GUI , how to make the handles be used in my function?

조회 수: 2 (최근 30일)
Roger
Roger 2015년 4월 11일
편집: Roger 2015년 4월 11일
use global or sth. ? Is there any way?
when i create my function , it occurs error: Attempt to reference field of non-structure array.

채택된 답변

Roger
Roger 2015년 4월 11일
편집: Roger 2015년 4월 11일
ok, i found one way ,just set the handles as a parameter and pass it to my function.
function myfun(handles,params)

추가 답변 (1개)

Stephen23
Stephen23 2015년 4월 11일
Have a look in the documentation:
The best practice is to pass arguments to functions... you should try this!

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by