I am trying to change the background color of toggle buttons depending on my array output. Basically i have a loop which is filling the array.
number = 20;
tic
A = [];
for i = 1 : number
A = [i]
pause(1)
end
Depending on what number i is inside the Array i want to change that background color of the toggle button in my GUI. so i tried with this:
function togglebutton1_Callback(hObject, eventdata, handles)
if A == 1
set('BackgroundColor','red')
Sadly it didn't work. I would appreciate any help