www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@constar/optmgr_boundaryonly.m
function [om,ok] = optmgr_boundaryonly( c, varargin ) %OPTMGR_BOUNDARYONLY Creates an xregoptmgr for CONSTAR objects % OPTMGR_BOUNDARYONLY(C) is a nested optim manger (xegoptmgr object) for % the constar object C. This nested optim manger controls the case when all % of the supplied data points are on the boundary. % % See also OPTMGR, OPTMGR_INTERIOR, OPTMGR_AUTODILATION, % OPTMGR_MANUALDILATION, OPTMGR_RAYSFROMDATA, OPTMGR_RAYSFROMNUMBER. % Copyright 2000-2014 The MathWorks, Inc. and Ford Global Technologies, Inc. om = contextimplementation( xregoptmgr, c, @i_boundaryonly, [], ... 'Boundary Only', @optmgr_boundaryonly ); om = AddOption( om, 'ActualDilationRadius', ... -1, {'numeric', [-Inf,Inf]}, '', 0 ); ok = 1; %---------------------------------|--------------------------------------------| function [c,I,R] = i_boundaryonly( c, ~, X, varargin ) % Inputs: % c constar object % om option manger % X data points % Outputs: % c constar object % I boundary point indices % R dilation radius I = (1:size(X,1)).'; R = -1;