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?
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.