运行包含S函数的simulink 模型,S函数变红色,且diagnostic,如下
Error in S-function'project1_simu/S-Function': S-Function 'chiu_sfcn' does not exist
解决方法:
You need to compile the s function usingmex.
Then the mex32 output file needs to beon the matlab path.
如键入:mex chiu_sfcn, 则解决
联系客服