Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to find min/max in a figure/colorbar?
Replies: 1   Last Post: Mar 19, 2013 7:11 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Kristin

Posts: 67
Registered: 2/22/12
Re: How to find min/max in a figure/colorbar?
Posted: Mar 19, 2013 7:11 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Anke " <anke.wortmann@student.kit.edu> wrote in message <khncoe$lq$1@newscl01ah.mathworks.com>...
> I saved figures of some plots during a simulation run. They are imagesc. Is there any way to fin the min/max values just from the figure? Or actually the colorbar.
> I use the image without axes in a .tex document where I use pgfplots to redo the axes and colorbar. So basically I need to know how to accurately remake the colorbar not just by guessing. The ticks on my Matlab colorbar don't go all the way up and down, so right now, guessing is my only option...


CAX = caxis;

This will return a two-element vector of the min and max value, per the colorbar.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.