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

Irene Laiz

E-mail

Personal Profile:

 

Watch this Author's files

 

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

To the author: great job!! Thanks so much for this wonderful routine!!

To Sophie's post (15 Nov 2010): There's a simple way to work around your problem by simply eliminating the handles after "colormap". I've modified your code below:

load clown;
figure('position',[100 100 500 500]),

h1 = axes('position',[0.1 0.1 0.4 0.4]);
set(h1,'visible','on');
colormap('jet');
imagesc(X); %Without handles
freezeColors; %Without handles

h2 = axes('position',[0.6 0.1 0.4 0.4]);
set(h2,'visible','on');
colormap('gray');
imshow(mat2gray(X)); %Without handles
freezeColors; %Without handles

Hope this helps!!

Contact us