File Exchange

image thumbnail

Matlab script for digitizing a published graph

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

13 Downloads

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 (2019). Matlab script for digitizing a published graph (https://www.mathworks.com/matlabcentral/fileexchange/36904-matlab-script-for-digitizing-a-published-graph), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

??? 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
imagesc('bc1_spectra.JPEG');

An easier approach would be to use a free standalone program for the job. See http://www.im2graph.co.il. im2graph is free and available for Windows and Linux.

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