File Exchange

image thumbnail

Matlab script for digitizing a published graph

version (1.92 KB) by Rex Cheung
This function lets users digitize a published graph that is saved as a image e.g. jpeg.


Updated 29 May 2012

View License

User needs to load the image into matlab workspace before running this program.
User needs to provide the name of the image, and the number of data points to be digitized. The user will be asked to indicate on the image the pixel position corresponds to the origin, a value on x axis and a value on y axis. These are used to scale the user selected data points.

usage exampe:digitizeGraph(testGraph,3);

Cite As

Rex Cheung (2021). Matlab script for digitizing a published graph (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Siti Nurbaya

Hi, May i know the format of the image needed to use the code? thanks

??? Error using ==> image
Error using ==> image
Numeric or logical matrix required for image CData

Error in ==> imagesc at 19
hh = image(varargin{1},'CDataMapping','scaled');

Error in ==> digitizeGraph at 13

shau vaingast

An easier approach would be to use a free standalone program for the job. See im2graph is free and available for Windows and Linux.

Naveen Kallanagoudar


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

Community Treasure Hunt

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

Start Hunting!