www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/@contable1/getRelation.m
function [op, code] = getRelation(con) %GETRELATION Get the relational operators (<= or >=) for a table % % OP = GETRELATION(CON) % [OP, CODE] = GETRELATION(CON) % % See also CONTABLE1, CONTABLE1/SETRELATION. % Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc. code = con.le; switch code, case 0, op = '>='; case 1, op = '<='; otherwise error(message('mbc:contable1:InvalidState', upper( class( con ) ))); end %------------------------------------------------------------------------------| % EOF %------------------------------------------------------------------------------|