필터 지우기
필터 지우기

Is there any way to create 90 degree rose plot?

조회 수: 21 (최근 30일)
HyoJae Lee
HyoJae Lee 2023년 8월 23일
댓글: Leo Valon 2024년 6월 25일 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.

채택된 답변

Angelo Yeo
Angelo Yeo 2023년 8월 23일
편집: Angelo Yeo 2023년 8월 23일
rng(1); % for reproduction
theta = atan2(rand(1000, 1), rand(1000, 1));
polarhistogram(theta, 30);
thetalim([0, 90])

추가 답변 (1개)

Dyuman Joshi
Dyuman Joshi 2023년 8월 23일
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
HyoJae Lee
HyoJae Lee 2023년 8월 23일
Appreciated!
It is very helpful!
Leo Valon
Leo Valon 2024년 6월 25일 12:41
Helpfull

댓글을 달려면 로그인하십시오.

카테고리

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

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by