www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@constar/omUserDefinedCenter.m
function [om, ok] = omUserDefinedCenter(con) %OMUSERDEFINEDCENTER % % [OM, OK] = OMUSERDEFINEDCENTER(CON) % % See also CONSTAR, CONSTAR/GETSPECIALPOINTOPTIONS. % Copyright 2005-2009 The MathWorks, Inc. and Ford Global Technologies, Inc. GUI_SETABLE = true; % Second return arguemnt is required to work with "xregoptmgr" code. ok = true; % Use an "optimisation manager" to handle the options om = contextimplementation( xregoptmgr, con, '', '', 'User Defined', @omUserDefinedCenter ); om = setAltMgrs( om, {@omMeanCenter, @omMedianCenter, @omMidRangeCenter, @omMinEllipseCenter, @omUserDefinedCenter} ); cif = getActiveFactors( con ); Desc = sprintf('User-defined center [%s]',mbcListString( getSymbols(cif) )); om = AddOption(om,'CenterPoint',con.Center,{'vector' length(cif)},Desc,GUI_SETABLE); %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|