File Exchange

image thumbnail

imagesc legend

version 1.0 (1.76 KB) by

can give the legend to imagesc

3 Downloads

Updated

View License

can give the legend to imagesc

Comments and Ratings (2)

Yuheng

Very useful function.
But there is a small fault in online help.
The first line ‘h is gcf’ should be ‘h is the handle of a surface object, such as imagesc, pcolor or surf’

example:

A = magic(5);
hh = pcolor(A)
imlegend(hh, [1,5,10], {'a','b','c'})

fatima

fatima (view profile)

Hi Ganquan, it would be so kind of you if you (or any generous expert user) could give an example about how to use this code. Many thanks.

MATLAB Release
MATLAB 7.14 (R2012a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video