Perimeter by adding distance

조회 수: 2 (최근 30일)
Shubham
Shubham 2021년 2월 7일
답변: Srivardhan Gadila 2021년 2월 11일
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일
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)

카테고리

Help CenterFile Exchange에서 Elementary Polygons에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by