File Exchange

image thumbnail

extract_subplot_ima​ge

version 1.0.0.0 (998 Bytes) by Chris Clayton
Extract image data from saved fig file

1 Download

Updated 19 Jun 2006

No License

A ".fig" file may have several images embedded within.
This function allows you to "find" the image data (findobj) and "get" the image data (cdata) from an open ".fig" file. If the original data is unavailable or if you want to make a QuickTime movie of 40 images in two ".fig" files (as I did), this is great! The screenshot shows 20 large images saved as a fig file but extracted into a nicely anotated QT movie (with 20 more images).

Cite As

Chris Clayton (2021). extract_subplot_image (https://www.mathworks.com/matlabcentral/fileexchange/11450-extract_subplot_image), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Jessica Ramella-Roman

Bernd

the function only threw error messages at me, but looking at the code, I foun what I needed so badly; the extraction of image data in a subplot

w=findobj(gcf,'Type','image');
ww=get(w,'cdata');

stores cdata of every image into a cell of ww

MATLAB Release Compatibility
Created with R2006a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: getfigdata v1.1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!