I am developing a tool for image processing on MATLAB using GUIDE. I have a small snag to correct in it. The question is:
*
The user is asked to select one of the two images on the tool (in different axis) and then the handle of this image is passed on using a function for further processing. I am using the function UIGETPREF for this purpose. I want to disable one button on this dialogue when certain condition is true. How can I do that? The documentation does not list any such option.
The instruction:
selectedButton = uigetpref(... 'mygraphics',... % Group 'imageselection',... % Preference 'Select Image',... % Window title {'Please select a picture to enable labelling on.' '' 'The labelled points will be shown in other two axes after completion'},... {1,2;'Image A','Image B'},... % Values and button strings 'ExtraOptions','Cancel',... % Additional button 'DefaultButton','Image A',... % Default choice 'HelpString','Help',... % String for Help button 'HelpFcn','doc(''Axes'');');
Thank you.