how to give delay in MATLAB?
Show older comments
I want my robot to first detect the direction and the wait to take decision that whether to go forward or stay stationary.
4 Comments
KSSV
on 7 Nov 2016
How about using input(prompt) after detecting the direction. Then user has to tell robo what to do?
Jan
on 7 Nov 2016
Fine. So explain, what "a robot" is? A hardware machine or is it a simulation? What does "detecting the direction" mean and on what does the decision about the movement depend on?
In other words: What is your question? How can we assist you?
VAIBHAV GUPTA
on 7 Nov 2016
Walter Roberson
on 7 Nov 2016
So why is pause() not the solution you are looking for? It delays. Is there more that a delay has to do than to delay?
Answers (1)
Walter Roberson
on 7 Nov 2016
1 vote
See pause()
Categories
Find more on Network Connection and Exploration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!