rotate points on a line

1 Ansicht (letzte 30 Tage)
Ham Man
Ham Man am 24 Okt. 2022
Kommentiert: Ham Man am 25 Okt. 2022
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!

Akzeptierte Antwort

Matt J
Matt J am 24 Okt. 2022
Bearbeitet: Matt J am 24 Okt. 2022
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

Weitere Antworten (0)

Kategorien

Mehr zu 3-D Scene Control finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by