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

    function tp = getoperation(obj)
%GETOPERATION Returns the operation type that this object is performing
%
%  TP = GETOPERATION(OBJ) returns TP=0 if this object is taking the maximum
%  of the inputs, and TP=1 if it is taking the minimum of the inputs.

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


tp = obj.min;