Perimeter by adding distance

2 visualizaciones (últimos 30 días)
Shubham
Shubham el 7 de Feb. de 2021
Respondida: Srivardhan Gadila el 11 de Feb. de 2021
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

Respuestas (1)

Srivardhan Gadila
Srivardhan Gadila el 11 de Feb. de 2021
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)

Categorías

Más información sobre Elementary Polygons en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by