MATLAB Answers

How do i rotate a matrix over set of points.

14 views (last 30 days)
lakshmi surag Singavarapu
Edited: John D'Errico on 9 Feb 2021
So i have a 2*n matrix as input points and rotation vector is 2*1 vector and using angle how do i rotate the matrix?.

Answers (1)

John D'Errico
John D'Errico on 9 Feb 2021
Edited: John D'Errico on 9 Feb 2021
No. You do not want to rotate a matrix. You have a list of points that lie in the plane, described as cooordinates in each column of the matrix. So every column of that matrix apparently contains the (x,y) coordinates of one point.
Now, you want to rotate those points, apparently around the origin? You tell us you have a "rotation vector". What does that mean to you?

Community Treasure Hunt

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

Start Hunting!