Rotation of the circle (points)
조회 수: 4 (최근 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*')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211094/image.png)
댓글 수: 0
채택된 답변
Catalytic
2019년 3월 30일
Just add an increment to the th
th = linspace(0,2*pi,10) + rotation_angle ;
댓글 수: 0
추가 답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!