Rotation of the circle (points)
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
martin martin
el 29 de Mzo. de 2019
Respondida: Mahmoud Farout
el 13 de Sept. de 2019
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*')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211094/image.png)
0 comentarios
Respuesta aceptada
Catalytic
el 30 de Mzo. de 2019
Just add an increment to the th
th = linspace(0,2*pi,10) + rotation_angle ;
0 comentarios
Más respuestas (1)
Mahmoud Farout
el 13 de Sept. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Annotations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!