Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Help with plotting contour.

2 visualizzazioni (ultimi 30 giorni)
Shubham Maurya
Shubham Maurya il 7 Apr 2015
Chiuso: MATLAB Answer Bot il 20 Ago 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)

Risposte (1)

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

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by