% LUTBAR demo % ----------------------------------------------------------------------------- % created: % us 24-Nov-2005 % modified: % us 24-Nov-2005 21:32:13 % % ----------------------------------------------------------------------------- % if you download this package from TMW's FEX, % this folder should contain % % 1) a file <usrlut.m> with contents % a_lut.m % file a % b_lut.m % file b % c_lut % file c (no extension) % 2) all the files listed in <usrlut.m> % 3) the LUT2MAT conversion utility % 4) an additional <d.lut> file to demonstrate LUT2MAT conversion % 5) <deflut.xxx> % % note: if you remove any of the <*lut*> files mentioned above, % LUTBAR will only list the available colormap files % % ----------------------------------------------------------------------------- % if you want to change LUTBAR colormap entries % % ML colormaps % if you do not want all ML colormaps to show up, % 1) rename <deflut.xxx> to <deflut.m> % 2) edit <deflut.m> % 3) remove entries that should now show up on the toolbar % % USER colormaps % this package comes with 4 additional LUT files % if you want to add more LUTs, eg, from Chris Rorden's MRICRO % do this % download and install MRICRO into a folder <MRICRO_FOLDER> from % http://www.sph.sc.edu/comd/rorden/mricro.html % in LUTBAR's folder type % lut2mat(MRICRO_FOLDER) % which will create (currently 19) additional <xxx_lut.m> files % add all or some of them to your <usrdef.m> % -or- % rename your <usrlut.m> file, in which case LUTBAR will load ALL % <xxx_lut.m> files at startup % ----------------------------------------------------------------------------- % run examples % ----------------------------------------------------------------------------- % LUT2MAT % create a ML colormap by LUT2MAT lut2mat('d*.lut',0); % now, you could add <d_lut> to <usrlut.m> % LUTBAR % create a simple figure with a colorbar colormap(hot(256)); surf(peaks(64)); colorbar; axis square; % start LUTBAR lutbar; % now, play with the ICONs/MENU entries % click on an icon % righ click to see the context and choose a LUT % to turn LUTBAR off % click the <x> icon % or run LUTBAR again % this will also reset all original context menues
lut2mat> converting 1 <F:\usr\matlab\lut\d*.lut> lut2mat> converting 1 <d_lut.m>
