This function gets XData, YData, and ZData from a figure.
function [xdata,ydata,zdata]=read_figure(filename)
Input:
filename: filename of the figure.
Output:
xdata: a cell array where xdata{i} contains the XData vector of the ith plot in the figure.
ydata: a cell array where xdata{i} contains the YData vector of the ith plot in the figure.
zdata: a cell array where xdata{i} contains the ZData vector of the ith plot in the figure.
Cite As
Ayad Al-Rumaithi (2024). Read Figure (https://www.mathworks.com/matlabcentral/fileexchange/129019-read-figure), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2017b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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.