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

    function str = getconstrainttype(obj)
%GETCONSTRAINTTYPE Return a string indicating the type of constraint
%
%  STR = GETCONSTRAINTTYPE(OBJ) returns a string that indicates what kind
%  of constraint this is.  This string should be the same as the name given
%  to the constraint by the constraint factory object.

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


switch obj.ExprFilterType
    case 'model'
        str = 'Model';
    case 'feature'
        str = 'Feature';
    case 'table'
        str = 'Table';
    otherwise
        str = 'Expression';
end