I need help writing a function with one input and one output
6 ビュー (過去 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. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1197113/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1197113/image.png)
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!