I added to my function: coder.extrinsic('ode15s') This is what I got: Function handles cannot be passed to extrinsic functions.
ode15s is not supported when used in matlab-fn block in simulink
1 次查看(过去 30 天)
显示 更早的评论
I have a code solves DAEs using ode15s fn. However, when I copy it into matlab function block in simulink, it does not work and this is the error I got: "The function 'ode15s' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation." I read the aforementioned documentation but I could not use it in my code. Any experience from you would be greatly appreciated. Thanks
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!