how to set multiple handles at once

Status
Not open for further replies.

hamedham

Newbie level 1
Joined
Apr 24, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287
hi fiends
i have a big problem in matlab:
i want to set 150 checkbox properties such as 'value' 'string or etc,
for example by clicking on 'pushbutton1' this actions must be take place:
all 150 checkbox 'value's set to 1.
i dont want to write 15 lines of set like this

set(handles.checkbox1,'value',1)
set(handles.checkbox2,'value',1)
set(handles.checkbox3,'value',1)
...
set(handles.checkbox150,'value',1)

is there a short way
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…