I have found the answer. I can use x = set(MyBtnObject, 'enable') to get the possible values of the enable property, listed as an array of x cells.
% 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);
source share