File Exchange

image thumbnail

extract_subplot_ima​ge

version 1.0 (1.79 KB) by

Extract image data from saved fig file

2 Downloads

Updated

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).

Comments and Ratings (1)

Bernd

Bernd (view profile)

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
MATLAB 7.2 (R2006a)
Acknowledgements

Inspired: getfigdata v1.1

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video