Extracting data from image file
Delete every thing including axis lines, legends etc from the image, it should only contain the data line. It will only works with single line of data (dammit this is a useless function !!)
To extract the data from and rgb file such as bmp or png:
1) import image file data into matlab workspace (by simply dragging and dropping the image file onto the workspce)
2) rename imported data as 'data'
3)read range of x and y axis from figure manually and add these values in calibration part of the code i.e.
minvalx is the least value of x in the data you want to read
maxvalx is highest value of x axis in your data
minvaly is minimum value of data
maxvaly is a maximum value of data
Note: read values of data not the axis
execute code and that's it
Cite As
Abdul Sattar (2024). Extracting data from image file (https://www.mathworks.com/matlabcentral/fileexchange/67439-extracting-data-from-image-file), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | comments added in file
|