昨天试了一下,S函数单独运行没有错误,模型不用S函数的输出,自己给个固定值也可以运行。
但是将S函数加入后运行又出现如下提示:
State derivatives returned by S-function 'djcsbs' in 'slkz341/Subsystem2/csbs/S-Function' during flag=1 call must be a real vector of length 1.
出现这种问题一般是哪方面的原因?有高人指点一下吗?
LZ,请问:State derivatives returned by S-function 'djcsbs' in 'slkz341/Subsystem2/csbs/S-Function' during flag=1 call must be a real vector of length 1.
你的这个问题解决了吗?能请教一下吗?我也考虑ing,无解啊。谢谢QQ61810507