Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

reversing a colormap

Status
Not open for further replies.

nicolagao

Industrial
Dec 12, 2006
6
Can I do that? If I want, say the 'gray' colormap to be from 'white to black', instead 'black to white', is there any simple function doing that?

Thanks!
 
Replies continue below

Recommended for you

This should do the trick
Code:
blackwhite = colormap('gray');
whiteblack = flipud(blackwhite);
 
Hi, thank you for your advice. I know it's been a while since I posted it, but still thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor