gusucode.com > vision工具箱matlab源码程序 > vision/+vision/+internal/+buildable/errorIfInSimulink.m

    function errorIfInSimulink(name)
%#codegen

% Determine the codegen context. Only MATLAB Coder's MEX and 'Rtw' = {DLL,
% EXE, or LIB} targets are supported.
isSupportedContext = coder.internal.const(...
    coder.target('MEX') || coder.target('Rtw')); 

eml_invariant(isSupportedContext,...
    eml_message('vision:ocvShared:codegenNotSupportedInSimulink',name))