Filter löschen
Filter löschen

click a pushbutton automatically

1 Ansicht (letzte 30 Tage)
jose bernardo
jose bernardo am 20 Feb. 2014
Hi:
I want that a pushbutton will be clicked automatically when a variable in the opening_fcn of the GUI is 1.
I tried with this
function autoclick_OpeningFcn(hObject, eventdata, handles, varargin)
variable=1
if variable==1
set(handles.pushbutton1,'enable','on');
end
But i think enable it isnt the correct command.
Any sugestion?
Thanks.

Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by