rotate points on a line

조회 수: 2 (최근 30일)
Ham Man
Ham Man 2022년 10월 24일
댓글: Ham Man 2022년 10월 25일
I have some blue and red points located on a line with a center at solid white circle (attached screen shot). I want to rotate these points around the center by 360 degree with a desired incerement(e.g. 5 degree) while keeping the color of the points as they are. it should end up with 2d map in a circle with red and blue points.
Many thanks for any advice!

채택된 답변

Matt J
Matt J 2022년 10월 24일
편집: Matt J 2022년 10월 24일
You can imitate the following example.
h=plot(1:5,'--x');
center=[2,2,0];
for i=1:10:360
rotate(copyobj(h,h.Parent),[0,0,1],i,center);
end
  댓글 수: 1
Ham Man
Ham Man 2022년 10월 25일
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by