2点間を移動する物体の一秒毎の位置の履歴を作成したい.
Mostra commenti meno recenti
無作為に二次元の出発点と到着点を設定し、その間を例えば毎秒20mで移動する物体を考え、その物体の一秒毎の二次元位置の履歴を作成したいです。
例えば出発点(x,y)=(2445,5679) , 到着点(x,y)=(4512,7738)と設定された時
秒数 X座標 Y座標
0 2445 5679
1 2455 5688
2 2465 5697
・ ・ ・
・ ・ ・
・ ・ ・
と返されるようなコードを作成したいです。
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Grid Lines, Tick Values, and Labels in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!