www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@constar/omMinEllipseCenter.m

    function [om, ok] = omMinEllipseCenter(con)
%OMMINELLIPSECENTER Options for finding center by fitting a minimal ellipsoid
%
%  [OM, OK] = OMMINELLIPSECENTER(CON)
%
%  See also CONSTAR, CONSTAR/GETSPECIALPOINTOPTIONS.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.

% Second return arguemnt is required to work with "xregoptmgr" code.
ok = true;

% Use an "optimisation manager" to handle the options
om = contextimplementation( xregoptmgr, con, '', '', 'Min Ellipse', @omMinEllipseCenter );
om = setAltMgrs( om, {@omMeanCenter, @omMedianCenter, @omMidRangeCenter, @omMinEllipseCenter, @omUserDefinedCenter} );


%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|