How to simulate simulink model in a given set of time-points only?
1 view (last 30 days)
Birdman on 23 Mar 2020
Yes, it is possible. Consider the attached Simulink model which contains a ramp block and its slope parameter is set as 5. Its stop time is 10. We expect to see the output of the ramp at t=0,1,6,9. Run the following code from command line:
t=[0 1 6 9];
The last line will give you 0,5, 30 and 45 which shows that the model is ran at specified time values. You can adapt this to your application.