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