Rotation of the circle (points)
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
martin martin
am 29 Mär. 2019
Beantwortet: Mahmoud Farout
am 13 Sep. 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*')
0 Kommentare
Akzeptierte Antwort
Catalytic
am 30 Mär. 2019
Just add an increment to the th
th = linspace(0,2*pi,10) + rotation_angle ;
0 Kommentare
Weitere Antworten (1)
Mahmoud Farout
am 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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu 3-D Scene Control finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!