Plotting a bar graph on a circular axis

조회 수: 2 (최근 30일)
Harrison Chong
Harrison Chong 2023년 1월 4일
댓글: Harrison Chong 2023년 1월 5일
Could anyone point me in the direction of being able to produce a bar graph on a circular axis like in the picture attached? (Not asking for complete code, just a pointer).

채택된 답변

John D'Errico
John D'Errico 2023년 1월 4일
편집: John D'Errico 2023년 1월 4일
Just to make up some data...
n = 100;
theta = linspace(0,2*pi,n);
r = 10 + rand(1,n);
r = [r;r+1+rand(1,n)];
Ok. now I have some data. Just call polar.
polar([theta;theta],r,'-')
  댓글 수: 1
Harrison Chong
Harrison Chong 2023년 1월 5일
Thank you for answering! I guess I was stuck on the fact that I wanted a bar graph, but these lines work just fine.

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

추가 답변 (0개)

카테고리

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