Can I use Variable step solver with Matlab Function blocks inside a Simulink model?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 11월 30일
답변: MathWorks Support Team
2018년 12월 5일
My questions revolve around - Does Variable step solver work with Matlab Function block inside a Simulink model? Is the onus on the simulator or the function to "remember" that it's re-computing an intermediate time step?
채택된 답변
MathWorks Support Team
2018년 11월 30일
Yes, It is possible to use Variable step solver when the Simulink model includes a MATLAB Function block.
However the MATLAB Function block doesn't know that it is dealing with a variable time step solver because it only operates on the data at the current time step and does not depend on the previous time step. In other words MATLAB Function block only operates on the data one time step at a time. So the onus is not on the function to know that it is dealing with intermediate time steps.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!