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

    function out = numoutputs(M)
%NUMOUTPUTS
%  Some xregexportmodels can have multiple outputs so this method 
%  returns the number of outputs

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


m = M.model;
if isempty(m)
	out = 1;
else
	out = numoutputs(m);
end