www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@cset_stratlattice/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 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. % Created 12/3/2001 if ~isempty(ind) out=zeros(length(ind),length(obj.g)); if ~isa(ind,'double') ind= double(ind); end lims=limits(obj.candidateset); for i=1:length(obj.RealG) if obj.Nlevels(i) base = (0:obj.RealG(i):(obj.N-1))'; out(:,i) = base(rem(ind,obj.Nlevels(i))+1); else out(:,i)=rem(obj.RealG(i).*(ind(:)-1),obj.N); end end lowpnt=repmat(lims(:,1)',length(ind),1); scaling=repmat((diff(lims,1,2)')./(obj.N-obj.ScaleFudge),length(ind),1); out=lowpnt+out.*scaling; else out=[]; end return