Why does NextTimeHit always return 0 in Matlab S-Functions?
이전 댓글 표시
I need to compute the step size (i.e. dt) in the discrete update method of a Matlab S-Function whose Sample Time is set to be "Inherited" (i.e. [-1 0]). However, regardless of the Sample Time specification (e.g. Inherited, Continuous, Discrete, Variable), the "block.NextTimeHit" always return "0" even though it is decleared as R/W in its Matlab Documentation.
- Why does NextTimeHit always return 0 in Matlab S-Functions?
- How can I infer the actual step size in update method of (Discrete) Matlab S-Functions for inherited and variable sample times?
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Configure Block Features for MATLAB S-Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!