www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@cset_lhs/private/pGeneratePoints.m

    function obj = pGeneratePoints(obj)
%PGENERATEPOINTS Generate the candidate set points if required
%
%   OBJ = PGENERATEPOINTS(OBJ) ensures that a valid LHS design has been
%   selected.  If a set of points already exists then no action is taken.

%   Copyright 2007 The MathWorks, Inc.


if obj.doRecalc && isempty(obj.indices)
    % Recalculate the indices
    obj = generate(obj);
end