Similar to wind rose

7 Ansichten (letzte 30 Tage)
Fredrik
Fredrik am 13 Dez. 2011
Hi. I am looking for something like a wind rose, but with scatter points instead. I have vector Direction=[15,78,66,39,254,345]; and also vector Measurement=[1.1,1.2,0.9,2.0,0.8,1.6]; Now I would like to have each value, not as a histogram, but as a scatter point in the circular plot. The farther the point is away from origin, the larger the value should be. The angle from y-axis should be the same as the value in Direction, oriented to the right. So 90 is in east direction.
All suggestions and ideas are very much appreciated!
/Fredrik
  1 Kommentar
Fredrik
Fredrik am 13 Dez. 2011
I want polar() but with 0 pointing up, and 90 degrees should be to the right, 180 down, and 270 degrees to the left, and everything in degrees.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Fredrik
Fredrik am 13 Dez. 2011
Best answer for all future noobies like me to solve this is : add view(90,-90) on the row after your plot, and everything looks perfect! Dont bother about altering your input data, it is not neccessary, atleast not for me.
  1 Kommentar
Fredrik
Fredrik am 16 Dez. 2011
Okey,I was wrong. Angles input to the program should be .*(pi/180); in the code.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (2)

Walter Roberson
Walter Roberson am 13 Dez. 2011
To achieve the rotation, feed in ((90 - direction) * pi/180) as the theta, and change the text labels on the axis (which you needed to do anyhow because you wanted degrees.)
  2 Kommentare
Fredrik
Fredrik am 13 Dez. 2011
Will that -90 be enough? That will only turn it counter clockwise, with 270 still to the right...
Fredrik
Fredrik am 13 Dez. 2011
And also, when i use:
polar(Direction.*(2*pi-(2*pi/360)),Measurement,'c.')
I actually get the axis in degrees to start with. Just that 0 points to the right instead of up, and east and west needs to be shifted.

Melden Sie sich an, um zu kommentieren.


Fredrik
Fredrik am 13 Dez. 2011
Is there a way with using view?
  1 Kommentar
Fredrik
Fredrik am 13 Dez. 2011
If I take az -91 and el -76 then I am only one half rotation from having everything perfect..

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Polar 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