www.gusucode.com > mbcmodels 工具箱 matlab 源码程序 > mbcmodels/@xregmodswitch/canExportToSimulink.m

    function ok = canExportToSimulink(m)
%CANEXPORTTOSIMULINK return flag to say when Simulink export is supported
%
%  OK = CANEXPORTTOSIMULINK(M)
%
%  Returns true when model m supports export to Simulink 
%
%
%  See also MODELBUILD, MV2SL.

%  Copyright 2012-2014 The MathWorks, Inc. and Ford Global Technologies, Inc.

% check whether each of the component models supports export to Simulink

% global models


ok = canExportToSimulink(m.ModelList);