How to draw 2D graph of 4 variables

1 回表示 (過去 30 日間)
Abdulkarim Almukdad
Abdulkarim Almukdad 2020 年 10 月 11 日
コメント済み: Abdulkarim Almukdad 2020 年 10 月 11 日
I have a set of data that contains X and Y coordinates, in addition I have Vx and Vy at each X and Y coordinates, thus 4 variables and all of them are known (no equations or assumptions needed)
Is there anyway that I can draw a graph on a 2D plane showing the direction of the arrows of each Vx and Vy at each X and Y coordinates?
In other words, consider X and Y are a point (.) from that point an arrow should apper with direction on x called Vx and direction on y called Vy.

採用された回答

Asad (Mehrzad) Khoddam
Asad (Mehrzad) Khoddam 2020 年 10 月 11 日
編集済み: Asad (Mehrzad) Khoddam 2020 年 10 月 11 日
try this function:
quiver(X,Y,VX,Vy);
you can add this graph to the previously created graph by using hold on statement.
You may need to do some modifications on X and Y to be able to plot it
  1 件のコメント
Abdulkarim Almukdad
Abdulkarim Almukdad 2020 年 10 月 11 日
Thanks its exactly what I'm looking for

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

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by