How can I rotate a marker by a desired angle/azimuth on the map?

26 Ansichten (letzte 30 Tage)
Michal Kruszewski
Michal Kruszewski am 30 Jul. 2019
Kommentiert: Viven Sharma am 10 Jun. 2022
Hello,
I am struggling to find a method of rotating a point on a map i.e. marker (currently i use a common 'o' marker with a defined color scale indicating an azimuth of the point/marker) by certain angle on the map?
Additionally, I would also like to change the type of marker from an 'o' type to an arrow (or a even line) indicating the direction. Can you help?

Antworten (1)

Prabhan Purwar
Prabhan Purwar am 2 Aug. 2019
quiver() works fine in placing markers on the plotted graph. Following example illustrates drawing marker at various angles and positions.
x=5;
y=5;
r=1;
theta=0;
for theta=0:90:360
x=x+3;
u = cos(theta).*r;
v = sin(theta).*r;
hold on
quiver(x,y,u,v);
end
axis([1,24,1,10]);
For more information refer to the following link:
  1 Kommentar
Viven Sharma
Viven Sharma am 10 Jun. 2022
Hi,
How can we rotate a marker, like let's say '+' for example. Quiver function rotates the line which is under the property 'LineStyle' and not 'Marker'.
Also, I don't see any such property under the plot and scatter functions as well.
Can anyone provide more information in this regard?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu 2-D and 3-D Plots 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!

Translated by