Borrar filtros
Borrar filtros

Is there any way to create 90 degree rose plot?

21 visualizaciones (últimos 30 días)
HyoJae Lee
HyoJae Lee el 23 de Ag. de 2023
Comentada: Leo Valon el 25 de Jun. de 2024 a las 12:41
Hello all,
I am very beginner of creating figures in MATLAB. so, I need some help.
I want to create a 90 degree rose plot like in this image below (Sorry for bad resolution!):
Like in the figure, it looks like polar histogram or rose digram, but it shows only 0 to 90 deg.
I have no idea how to plot only this part.
Can you help me to draw like the image that I upload?
Thank you,
HyoJae.

Respuesta aceptada

Angelo Yeo
Angelo Yeo el 23 de Ag. de 2023
Editada: Angelo Yeo el 23 de Ag. de 2023
rng(1); % for reproduction
theta = atan2(rand(1000, 1), rand(1000, 1));
polarhistogram(theta, 30);
thetalim([0, 90])

Más respuestas (1)

Dyuman Joshi
Dyuman Joshi el 23 de Ag. de 2023
Adjust the theta limits -
%Random data
theta = atan2(rand(100000,1)-0.5,2*(rand(100000,1)-0.5));
polarhistogram(theta,25)
%Get current axes
ax=gca;
%Modify the theta limits accordingly
ax.ThetaLim = [0 90];
  2 comentarios
HyoJae Lee
HyoJae Lee el 23 de Ag. de 2023
Appreciated!
It is very helpful!
Leo Valon
Leo Valon el 25 de Jun. de 2024 a las 12:41
Helpfull

Iniciar sesión para comentar.

Categorías

Más información sobre Polar Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by