Я нашел ответ. Я могу использовать x = set(MyBtnObject, 'enable')
, чтобы получить возможные значения для свойства enable, указанного в виде массива ячеек x
.
% find buttons
h = findobj('style', 'pushbutton');
% getting all the possible values for 'enable' property for all pushbuttons
% x = set(h, 'enable'), when h is array, will not work
x = arrayfun(@(x)(set(x, 'enable')), h, 'UniformOutput', false);