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

    function [A, b] = getLinearForm(con)
%GETLINEARFORM Get the linear form of a constraint
%
%  [A, B] = GETLINEARFORM(CON)
%
%  For the lineat constraint this method is really just an access method. It
%  returns A = CON.A and B = CON.b. 
%
%  See also CONLINEAR, CONBASE/GETLINEARFORM.

%  Copyright 2000-2005 The MathWorks, Inc.

ai = getActiveIndices( con );
A = zeros( 1, nFactors( con ) );
A(ai) = con.A;
b = con.b;

%------------------------------------------------------------------------------|
% EOF
%------------------------------------------------------------------------------|