getting vertices of patch object after rotation .
2 次查看(过去 30 天)
显示 更早的评论
Hello all , I am inserting a patch object and then rotating it about some angle . How can I get vertices of patch object after rotation ? thank you
0 个评论
采纳的回答
Brendan Hamm
2015-12-28
p = patch([0 0 0.1 0.1],[0 0.2 0.2 0],'b')
p.Vertices
or
p.XData
p.YData
Although I'm not sure how you are rotating it without passing to the XData, YData, or Vertices properties.
The old way (prior to 2014b):
myVerts = get(p,'Vertices');
2 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polygons 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!