Rotation of the circle (points)

2 次查看(过去 30 天)
Hello guys,
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?
Best regards
clear all; close all; clc;
r = 1 ; % radius of circle
th = linspace(0,2*pi,10) ;
x = r*cos(th) ;
y = r*sin(th) ;
plot(x,y,'r*')

采纳的回答

Catalytic
Catalytic 2019-3-30
Just add an increment to the th
th = linspace(0,2*pi,10) + rotation_angle ;

更多回答(1 个)

Mahmoud Farout
Mahmoud Farout 2019-9-13
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.

类别

Help CenterFile Exchange 中查找有关 Interactions, Camera Views, and Lighting 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by