How to create a closed loop with initial solution
1 次查看(过去 30 天)
显示 更早的评论
I would like to create using Simulink a closed loop system in which i provide the initial solution to start the simulation and than the model has to do a loop every dt (es. 0.05 s) using the solution of the previous loop. How is it doable?
0 个评论
采纳的回答
A Jenkins
2013-9-19
You can feedback your previous result using a delay block or memory block.
The intial condition for either of these blocks can be set by double clicking on it.
2 个评论
A Jenkins
2013-9-20
Try the "Unit Delay" block instead of Memory. You can set the sample time to be every 1 second.
(Depending on what you need to do, another simple option may be to change the solver in the Configuration Parameters to Fixed Step and set the step time to 1 second.)
更多回答(0 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!