Perimeter by adding distance

I have two arrays [x] and [y] (contains values corresponding to x)..I plot the values it resulted in a closed curve now the question is I want find the perimeter of this curve by adding distance between adjacent points. What will be the logic

回答 (1 件)

Srivardhan Gadila
Srivardhan Gadila 2021 年 2 月 11 日

0 投票

You can refer to the documentation of the functions perimeter & polyshape.
pgon = polyshape([0 0 1 3], [0 3 3 0]);
plot(pgon)
P = perimeter(pgon)

カテゴリ

ヘルプ センター および File ExchangeElementary Polygons についてさらに検索

製品

質問済み:

2021 年 2 月 7 日

回答済み:

2021 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by