Coordinates in degree in Rose plot

조회 수: 4 (최근 30일)
Julia
Julia 2015년 5월 20일
답변: Ilham Hardy 2015년 5월 20일
I want to plot the following coordinates in a rose plot, so I get something that looks like a compass, with a representation for the element at the respective direction. I have tried different bins, but did not get the right result.
a= [30,
180,
40,
260,
310,
]
rose(a,360)

답변 (1개)

Ilham Hardy
Ilham Hardy 2015년 5월 20일
rose theta input is expressed in radians (most of trig-related matlab functions are in radians).
You can try this:
rose(a.*(pi/180),360)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by