how can i get the data from 3D graph? xyz
Show older comments

3 Comments
Walter Roberson
on 13 Apr 2016
Are you starting from an image, or are you starting from an active graph? If so, what kind of plot is it? Is there a reason you are not just recording the data instead of trying to extract it from the graphics?
alef imran
on 13 Apr 2016
Azzi Abdelmalek
on 13 Apr 2016
what is the extension of your file?
Accepted Answer
More Answers (1)
Azzi Abdelmalek
on 13 Apr 2016
%-----Example------------
x=1:100
y=1:100
[X,Y]=meshgrid(x,y)
Z=sin(X).^2+cos(Y).^2
mesh(X,Y,Z)
%-------------------
ch=get(gca,'children')
X=get(ch,'Xdata')
Y=get(ch,'Ydata')
Z=get(ch,'Zdata')
1 Comment
alef imran
on 24 Apr 2016
Categories
Find more on White in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!