Info
This question is closed. Reopen it to edit or answer.
Help with plotting contour.
1 view (last 30 days)
Show older comments
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)
0 Comments
Answers (1)
Thorsten
on 7 Apr 2015
Use colorbar to add a colorbar that relates the colors to values, as in
pcolor(peaks), colorbar
0 Comments
This question is closed.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!