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

    function c= delete(c,index);
% DES_CONSTRAINTS/DELETE delete constraints
% 
%  c= delete(c,index);
%  c= delete(c,'all');

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.



if ischar(index) & strcmp(index,'all')
   % delete all constraints
   c.Constraints={};
else
   c.Constraints(index)=[];
end
% reset interior points
c= reset(c);