필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Help with plotting contour.

조회 수: 1 (최근 30일)
Shubham Maurya
Shubham Maurya 2015년 4월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
r=-5:.2:5; [X,Y]=meshgrid(r,r); Z=30-2*X; pcolor(Z) This is the temperature distribution. Now I want to label each color in the plot with corresponding temperature. (Say yellow corresponds to 60 degC and so on)

답변 (1개)

Thorsten
Thorsten 2015년 4월 7일
Use colorbar to add a colorbar that relates the colors to values, as in
pcolor(peaks), colorbar

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by