GUI, Handles saved in variable
Ältere Kommentare anzeigen
well in simple, i wrote:
A=['handles.',get(hObject,'Tag')];
set(A,'Backgroundcolor',[0,1,0]);
or
A='handles.pushbutton1';
set(A,'Backgroundcolor',[0,1,0]);
and function 'set' cannot read that A, can you help me? Uncle MATLAB says :
Error using set
Value must be a handle
Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 25 Sep. 2016
Try
handles.pushbutton1.BackgroundColor = [0, 1, 0];
Kategorien
Mehr zu Structures finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!