Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Help with basic problem
1 回表示 (過去 30 日間)
古いコメントを表示
If I walk from point A to point B, with pace length of C, how many steps must I take to go from A to B, to be within 0.2m of B. Plot step size against number of steps required,
0 件のコメント
回答 (1 件)
Andrew Reibold
2014 年 10 月 27 日
編集済み: Andrew Reibold
2014 年 10 月 27 日
steps_required = ceil(((B-.2)-A)/C)
Explanation: Assuming you want to take the minimum amount of steps, the distance you MUST travel is the difference between B-A, with a grace of .2
Divided that distance by your step length, and you get the number of steps (round UP).
I'll let you do the critical thinking for the second part. This sounds like a homework problem.
1 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!