n = 20; % 2000 takes long calculation time fot contour
X = randi(1000,n);
[C,h] = contour(X,[400 600]); axis image
set(h,'ShowText','on','LineWidth',2)
colormap([1 0.6 0; 1 0 0]) % own colormap, orange and red
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!