Rotation of the circle (points)
15 views (last 30 days)
Show older comments
martin martin on 29 Mar 2019
Answered: Mahmoud Farout on 13 Sep 2019
I have a question, how can I rotate all points to new position (in yellow circle) - I just want rotate a circle. Any idea please?
clear all; close all; clc;
r = 1 ; % radius of circle
th = linspace(0,2*pi,10) ;
x = r*cos(th) ;
y = r*sin(th) ;
Catalytic on 30 Mar 2019
Just add an increment to the th
th = linspace(0,2*pi,10) + rotation_angle ;
More Answers (1)
Mahmoud Farout on 13 Sep 2019
I think you need to put your work in a for loop with increment to see a rotation in your loop . If you use small increment you will observe a good vision.
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!