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

    function p = designproperties(c,p,m)
%DESIGNPROPERTIES properties for command-line
%
% p = designproperties(c,p)

%  Copyright 2007 The MathWorks, Inc.

CLSID = mfilename('class');
[p,OK] = PersistentStore(p,CLSID);
if ~OK
    p = iMakeProps(c,p,m);
    PersistentStore(p,CLSID);
end


function p = iMakeProps(c,p,m)

p = designproperties(c.candidateset,p,m);
p = addprop(p,'NumberOfCenterPoints',...
    @iGetCenterPoints, @iSetCenterPoints,...
    'int',[0 Inf],...
    'Number of center points'); 


function v = iGetCenterPoints(c,m)

v = c.Nc;

function c = iSetCenterPoints(c,v,m)

c.Nc = v;