12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

imagescExamplesIf the size of the current colormap is 81-by-3,the statementsclims = [10 60]imagesc(C,clims)map the data values in C to the colormap,as shown to the right.DataValues81605958ColormapValues8180797812111014321The left image maps to the gray colormap using the statementsload clownimagesc(X)colormap(gray)The right image has values between 10 and 60 scaled to the full range of thegray colormap using the statementsload clownclims = [10 60];imagesc(X,clims)colormap(gray)202040406060808010010012012014014016016018018020050 100 150 200 250 30020050 100 150 200 250 3002-244

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!