我正在开发一个使用 GUIDE 在 MATLAB 上进行图像处理的工具。我有一个小问题要纠正。问题是:
*
要求用户选择工具上的两个图像之一(在不同的轴上),然后使用函数传递该图像的句柄以进行进一步处理。为此,我使用了 UIGETPREF 函数。当某些条件为真时,我想禁用此对话框中的一个按钮。我怎样才能做到这一点?该文档没有列出任何此类选项。
指令:
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'');');
谢谢你。