Plotting a graph for time and distance where i have contant velocity
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to plot a graph i have distance between two point that is coverd via two different path due to which i have different time to complete the path i want to show comparision of both with respect of time how shoulsd i write the code?
0 件のコメント
回答 (1 件)
jahanzaib ahmad
2019 年 2 月 18 日
編集済み: jahanzaib ahmad
2019 年 2 月 18 日
x=rand(3,2); % three points
d = pdist(x,'euclidean'); % distancecbetween those points
v=50; %veloicty
t=d/v; %time
plot(x(:,1),x(:,2),'.')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!