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

    function [c,sel] = add(c,con)
%ADD Add a constraint 
%
%  C = ADD(C,CONOBJECT)
%  [C, NUMCONSTRAINTS] = ADD(C,CONOBJECT)

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

c.Constraints = [c.Constraints,{con}];
sel = length(c.Constraints);