how to get coordinate a point in 2d grid if i know the avg speed of that point

1 回表示 (過去 30 日間)
singh
singh 2015 年 5 月 7 日
コメント済み: Thomas Koelen 2015 年 5 月 7 日
suppose i have plotted a point on 2d graph and i know the avg speed of this point and after one minute I wish to know the coordinate of that point on 2d
  1 件のコメント
Nobel Mondal
Nobel Mondal 2015 年 5 月 7 日
Average speed doesn't have a direction component, so it is theoretically not possible to calculate the 2D coordinates.

サインインしてコメントする。

回答 (1 件)

Thomas Koelen
Thomas Koelen 2015 年 5 月 7 日
編集済み: Thomas Koelen 2015 年 5 月 7 日
X=0; %Initial X position
Y=0; %Initial Y position
Xspeed=5; %Speed in X direction, times 60 if you want it to be in minutes.
Yspeed=3; %Speed in Y direction, ##
nseconds=10; %Number of seconds/minutes it runs
figure
grid on
hold on
for it=1:nseconds
Plot(X+it*Xspeed,Y+it*Yspeed,'o')
end
This is what you want I think
  2 件のコメント
singh
singh 2015 年 5 月 7 日
thomas it shows node in diagonal but some time X coordinates increase and y coordinates are decrease and vice versa.than mostly cases node not in diagonal.
Thomas Koelen
Thomas Koelen 2015 年 5 月 7 日
So change the Xspeed and the Yspeed!

サインインしてコメントする。

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by