フィルターのクリア

how to plot a quadrangle

1 回表示 (過去 30 日間)
farfar
farfar 2017 年 2 月 15 日
回答済み: Roger Stafford 2017 年 2 月 15 日
Hi everybody does anyone know how I can plot a quadrangle with four set points of (x,y) like : (0.4464,0.4234), (0.4180,0.4116), (0.4046,0.3774), (0.4289,0.3871) ? Thanks !

採用された回答

Roger Stafford
Roger Stafford 2017 年 2 月 15 日
If the four (x,y) points are vectors P1, P2, P3, and P4,
plot([P1(1),P2(1),P3(1),P4(1),P1(1)],[P1(2),P2(2),P3(2),P4(2),P1(2),y-)
will draw the corresponding rectangle (provided the points are in the proper perimeter order.)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by