2
votes

Could you tell me how to plot in Matlab figure such as below (smooth transition of colors)? Function countour allows only to create plot with contour lines which doesn't provide enough information to me.

http://www.advsofteng.com/images/smoothcontour.jpg

2

2 Answers

4
votes

You can use imagesc with the 'jet' colormap. Here's an example:

x = conv2( randn(600), fspecial('gaussian',200,20), 'valid'); %// example 2D smooth data
imagesc(x)
colormap(jet)
colorbar
grid

enter image description here