Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski 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
Joined
Dec 12, 2006
Messages
6
Location
US
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!
 
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

Back
Top