www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@mbcwidgets/@factorselector2d/pFactorPopupClicked.m
function pFactorPopupClicked(obj, varargin) %PFACTORPOPUPCLICKED React to an input being changed % % PFACTORPOPUPCLICKED(OBJ, CHANGEINDEX) is called when a user changes a % factor selection in one of the popupmenus. % Copyright 2000-2010 The MathWorks, Inc. and Ford Global Technologies, Inc. % Ensure exclusivity is dealt with obj.pCheckExclusivity(varargin{:}); % Has anything actually happened? if isequal(obj.YFactor, get(obj.YFactorPopup, 'Value')) ... && isequal(obj.XFactor, get(obj.XFactorPopup, 'Value')) return end % OK - something is probably different - update internal state obj.pSetOutputFactors; % And fire the callback xregcallback(obj.FactorChangeCallback, obj, []);