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

    function out=partialset(obj,ind)
%PARTIALSET  Return the partial list of candidate points
%
%   LIST=PARTIALSET(OBJ,IND) returns the partial list of points in the
%   candidate set.

%  Copyright 2007-2008 The MathWorks, Inc.

if isempty(obj.PointSet)
    out = [];
else
    if any(ind>obj.NPoints)
        error(message('mbc:cset_pointset:InvalidIndex', obj.NPoints));
    end
    out = obj.PointSet(ind,:);
    out = scaleToLimits(obj, out);
end