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

    function out = npoints(obj)
%NPOINTS Return the number of points in a candidate set
%
%  NP = NPOINTS(OBJ)

%  Copyright 2007 The MathWorks, Inc.

if nfactors(obj.candidateset)>0 && ~isempty(obj.PointSet)
    out = obj.NPoints;
else
    out = 0;
end