Hi,
There are N number of ways to implement this logic. Here are some.
1. Using State action
on after(0.01,sec): t=t+0.01
2. Using Sample time
during: t=t+SAMPLE_TIME % where SAMPLE_TIME is defined in Workspace
Hope this helps. Thanks.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!