www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgtabgradconstraint/getNumOutputs.m
function nOut = getNumOutputs(obj, InSize) %GETNUMOUTPUTS Return the number of outputs % % NOUT = GETNUMOUTPUTS(OBJ, INSIZE) returns the number of output values % that the item can produce, as a function of the lengths of the inputs. % Copyright 2006 The MathWorks, Inc. if ~isComplete(obj) || checkInputSizes(obj, InSize) % No outputs if the object is not complete or an incorrect number of % inputs is specified to the object nOut = 0; else % Number of rows in the difference operator nOut = size(pGetDG(obj), 1); end