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

    function [op, code] = getRelation(con)
%GETRELATION Get the relational operator for a constraint
%
%  [OP, CODE] = GETRELATION(CON) returns the operator string ('>=', '<=' or
%  '==') and the corresponding numeric code (0, 1 or 2) of the operator.

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


op = '<=';
code = 1;