Rank: 157988 based on 0 downloads (last 30 days) and 0 file submitted
photo

Eva

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Eva
Updated File Comments Rating
18 Jul 2011 freezeColors / unfreezeColors Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images. Author: John Iversen

Brilliant function- thanks John.

However, I'm having an interesting problem with it when using contourf. If I run the following code line-by-line (ie: cutting and pasting each line into the command window one at a time), I get the correct image. If I copy and paste all lines of the code together into the command window, I get a completely different image. Note that this is NOT the case with imagesc, surf, etc.

figure

subplot(2,1,1)
contourf(peaks)
colormap hot
freezeColors

subplot(2,1,2)
colormap hsv
contourf(peaks)
freezeColors

Why is this? Any ideas for how to fix it so that I don't have to run my code line-by-line?

Thanks much!
-Eva

Contact us