How to store the coordinates of polygon found from for loop.?

조회 수: 1 (최근 30일)
Ravi Singh
Ravi Singh 2019년 2월 18일
답변: jahanzaib ahmad 2019년 2월 18일
I am getting the coordinates of box polygon in the for loop and i want to store it in an array and also i want to draw these coordinates on single image. I am getting error because boxpolygon itself is itself a array.

답변 (1개)

jahanzaib ahmad
jahanzaib ahmad 2019년 2월 18일
u can store them in cells.. using {}
A=[]; this before for loop
and this inside loop XX AND XY are vertices of polygons
AB=[XX,XY];
A{i} = AB;

카테고리

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