How to pause the simulation between time steps
4 次查看(过去 30 天)
显示 更早的评论
Arthur Goldsipe suggested me, there's no easy way to pause the simulation between time steps, but I can do something similar by causing the simulation to end after a specified number of time steps. I wanted know if we can stop the simulation after certain number of time step, are we able to vary the input based on time?
3 个评论
Arthur Goldsipe
2015-5-21
Can you clarify your question? What "input" do you want to vary? And based on what time? Better still, can you post a concrete example? You could even add some sample code and/or a SimBiology project. (You can attach files to questions.)
Arthur Goldsipe
2015-5-21
Oh, it's not clear from the current problem statement, but I believe this user is talking about pausing simulations of SimBiology models (for example, pausing while executing the sbiosimulate function). You can get a bit more context from the following post:
采纳的回答
quicklearner
2015-5-21
Hi ,
If you have defined your motion coordinates for the animation in a for loop, include the pause command inside the loop so that after every motion step there is a pause. The amount you want to pause can be specified by entering the number of seconds within brackets. For example : pause(0.3) pauses the animation for 0.3 seconds.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Perform Sensitivity Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!