www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@xregdesign/reorder.m
function des=reorder(des,ord) %REORDER Reorder design points % % D=REORDER(D,ORD) reorders the design points in D according to the % indices in ORD. ORD must have the same number of unique indices as % there are in the design (and must not attempt to index outside of D) or % an error will occur. % % Copyright 2000-2007 The MathWorks, Inc. and Ford Global Technologies, Inc. % Check ord np = npoints(des); ord(ord<1) = []; ord(ord>np) = []; ord2 = unique(ord(:))'; if length(ord2)~=np error(message('mbc:xregdesign:InvalidIndex')); end % reorder factor settings, index vector, fixed points des.design = des.design(ord,:); des.designpointflags = des.designpointflags(ord); des.designindex = des.designindex(ord);