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

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일

0 개 추천

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일

1 개 추천

Have a look in the documentation:
The best practice is to pass arguments to functions... you should try this!

카테고리

도움말 센터File Exchange에서 Function Handles에 대해 자세히 알아보기

태그

질문:

2015년 4월 11일

편집:

2015년 4월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by