Help with plotting contour.

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)

Antworten (1)

Thorsten
Thorsten am 7 Apr. 2015

0 Stimmen

Use colorbar to add a colorbar that relates the colors to values, as in
pcolor(peaks), colorbar

Diese Frage ist geschlossen.

Produkte

Tags

Gefragt:

am 7 Apr. 2015

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by