Q:

How to view pixel values of an image in MATLAB?

In versions of MATLAB like 2014A, it was easy to see the value of a grayscale/RGB image. We would just hover over the image with the mouse pointer to get the value.
This does not seem to be case for Matlab 2017A. How can this feature be enabled?

A:

If you have the image processing toolbox, use impixelinfo.  Make sure the figure is open first, then type this command into the MATLAB command prompt.  You can then hover your mouse over the image and you can see the intensities on the bottom left corner of the figure.
Here's an example of it in action1:

Do note that the coordinates are reversed where X is the column coordinate while Y is the row coordinate.
1. Source: http://www.johnloomis.org/ece564/notes/basics/aoi/pixval1.jpg

