www.gusucode.com > mbcexpr 工具箱 matlab 源码程序 > mbcexpr/@cgconconstraint/getlinearform.m

    function [A, b] = getlinearform(obj)
%GETLINEARFORM Get the linear form of a constraint
%
%   [A, B] = GETLINEARFORM(CON) returns the A and b matrices for the linear
%   constraints that this constraint expression implements.

%   Copyright 2005 The MathWorks, Inc.


if ~isempty(obj.ConObject)
    [A,b] = getLinearForm(obj.ConObject);
else
    [A,b] = getlinearform(obj.cgconstraint);
end