www.gusucode.com > rtw 工具箱matlab源码程序 > rtw/make_rtw.m

    function buildResult = make_rtw(varargin)
% MAKE_RTW Executes the Simulink Coder Build procedure for a block diagram.
%
%       MAKE_RTW first invokes the Target Language Compiler to generate the
%       code and then invokes the language specific make procedure. 
%
%       Calls rtw_<target_language>, tlc_<target_language>
%
%       This is an internal use only function and should not be called directly.

%       Copyright 1994-2008 The MathWorks, Inc.

%  instantiate an object of coder.internal.ModelCodegenMgr class
h = coder.internal.ModelCodegenMgr;

%  call make_rtw method of coder.internal.ModelCodegenMgr class
%  Note: varargin must be kept untouched.
buildResult = h.make_rtw(varargin{:});