Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Help with plotting contour.

2 vues (au cours des 30 derniers jours)
Shubham Maurya
Shubham Maurya le 7 Avr 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
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)

Réponses (1)

Thorsten
Thorsten le 7 Avr 2015
Use colorbar to add a colorbar that relates the colors to values, as in
pcolor(peaks), colorbar

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by