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

2 ビュー (過去 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 Center および File ExchangeElementary Polygons についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by