MATLAB: Reading pixels from an image

image with fig extension

I saved several images with extension fig, I need to read pixels in them, how can I do that?

Best Answer

Don't save them as .fig files. Use imwrite() to save them as .PNG files. Otherwise you'll have to read in the figures with openfig() and then use getimage(), which is not as direct, plus .fig files are not readable by standard functions such as Photoshop or whatever.
Related Question