Is the above MATLAB code syntax for temporarily pausing the simulation using if else statement, correct or wrong, if wrong then suggest the correct syntax ?
1 view (last 30 days)
Show older comments
for i = 1:1:99
if (t == (0.05 * i))
pause(0.00001);
else
continue;
end
end
1 Comment
Dyuman Joshi
on 15 Jun 2022
Edited: Dyuman Joshi
on 15 Jun 2022
The syntax looks correct. Though, else part is redundant.
Answers (0)
See Also
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!