ode15s is not supported when used in matlab-fn block in simulink

조회 수: 1 (최근 30일)
Ismaeel
Ismaeel 2017년 2월 20일
편집: Walter Roberson 2017년 2월 20일
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
Ismaeel
Ismaeel 2017년 2월 20일
I added to my function: coder.extrinsic('ode15s') This is what I got: Function handles cannot be passed to extrinsic functions.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2017년 2월 20일
편집: Walter Roberson 2017년 2월 20일
  댓글 수: 1
Ismaeel
Ismaeel 2017년 2월 20일
Thanks Walter for all your replies to my questions. Really were useful, appreciate it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by