I need help writing a function with one input and one output
3 次查看(过去 30 天)
显示 更早的评论
Im trying to write a function 'walk'. My input is 'number_of_steps' and my output is 'steps_made_successfully'. Im trying to instruct my robot to take a 'number_of_steps' and it return how many 'steps_made_successfully' before the robot would run into a wall. This is what I have so far but I dont know what I'm doing.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Robotics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!