用M文件写S函数在RTW编译时遇到以下错误:
MFile S-functions without a corresponding TLC file are not supported. You can inline your S-function by creating a TLC file for it. You can also remap your S-function to C by creating a corresponding C Mex source file and a Sa.tlc file in the same directory as the MFile S-function which contains (on the first line):
%% CallAsCMexLevel1
or
%% CallAsCMexLevel2
这是什么错误?该如何解决?