how to get current running time in a stateflow , ?
21 次查看(过去 30 天)
显示 更早的评论
with Matlab 2010b I just use " t" for cureeent time, but in higher version, this " t" never works
采纳的回答
更多回答(1 个)
CognitiveBias
2019-5-7
't' is a supported time symbol for C action language only.
For MATLAB action language use 'getSimulationTime()'.
![getSimulationTime example.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218438/getSimulationTime%20example.png)
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!