I would like to extract surface plot data from saved matlab fig. I am trying using below code
ch=openfig('latching_surfplot.fig');ch = findobj(ch,'Type','surface');surfl(x,y,z);ch=get(gca,'ch');x=get(ch,'xd');y=get(ch,'yd');z=get(ch,'zd');
But I am getting the following error
Undefined function or variable 'x'.
*Error in surfvslineplot
surfl(x,y,z);*
Please help.
Thanks
Best Answer