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

    function OK = canExportToSimulink(bdev)
%CANEXPORTTOSIMULINK true if constraint can be exported to Simulink
%
% OK = canExportToSimulink(con)

%  Copyright 2008 The MathWorks, Inc. and Ford Global Technologies, Inc.

con = getconstraint(bdev);
OK = ~isempty(con) && canExportToSimulink(con);