필터 지우기
필터 지우기

How to plot a contour diagram?

조회 수: 1 (최근 30일)
Hong Wei Tang
Hong Wei Tang 2021년 8월 23일
댓글: Bjorn Gustavsson 2021년 8월 23일
Greetings, could you guys teach me how to plot a contour diagram just like the picture below? Thanks and have a great day.
  댓글 수: 2
KSSV
KSSV 2021년 8월 23일
What data you have?
Hong Wei Tang
Hong Wei Tang 2021년 8월 23일
편집: Hong Wei Tang 2021년 8월 23일
Greetings,
I have a beta value with a range of 0 to 30, a gamma value with a range of 1 to 360 and last, 360 values of energy data. (The Excel file is attached in this comment)
Actually what I want to plot is same with the picture above. Same types of data.

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

채택된 답변

Bjorn Gustavsson
Bjorn Gustavsson 2021년 8월 23일
You should be able to do that with pcolor-in-polar-coordinates. Perhaps you might need to lightly modify the function to exactly tailor the plot to your desired look. (I recall having to do that but have forgotten exactly why I did what...)
HTH
  댓글 수: 2
Hong Wei Tang
Hong Wei Tang 2021년 8월 23일
Thanks for the answer. However, MATLAB displayed Unrecognized function or variable 'polarPcolor'. when I run the code.
Bjorn Gustavsson
Bjorn Gustavsson 2021년 8월 23일
The function is available on the File Exchange if you follow the link. FEX is a repository of an impressive range of user-supplied functions and toolboxes that extends the capabilities of matlab - whenever I have to solve a new coding-problem I have made a habit of looking at the file exchange for solutions that does the job - most of the time it is possible to find solutions that takes me at least 50 per cent of the way. This function you simply download and put into the directory where you have the utility-functions you've written and have on the matlab-path.
HTH

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by