Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Roger
Roger le 11 Avr 2015
Modifié(e) : Roger le 11 Avr 2015
use global or sth. ? Is there any way?
when i create my function , it occurs error: Attempt to reference field of non-structure array.

Réponse acceptée

Roger
Roger le 11 Avr 2015
Modifié(e) : Roger le 11 Avr 2015
ok, i found one way ,just set the handles as a parameter and pass it to my function.
function myfun(handles,params)

Plus de réponses (1)

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by