# MATLAB: Getting vertices of patch object after rotation .

patchrotationvertices

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

• p = patch([0 0 0.1 0.1],[0 0.2 0.2 0],'b')p.Vertices
p.XDatap.YData
myVerts = get(p,'Vertices');