ch = colorbar ( 'horiz');% transverse axis
set (get (ch, 'title'), 'string', '[m]', 'position', [590 -15]);% title of the position, on behalf of about 590, on behalf of -15 down, can not add position That is the default position in the middle colorar
set(ch,'position',[0.135 0.075 0.75 0.015],'ticks',(-1:0.2:1),'ticklength',0.015,'fontsize',12,...
'Ticklabels', { '<- 1.0', (- 0.8: 0.2: 0.8), '> 1.0'}) of the position% colorbar, [lower left width and height]
Reprinted: http: //blog.sciencenet.cn/home.php mod = space & uid = 3386114 & do = blog & quickforward = 1 & id = 1163914?