I have a Matlab figure with 3 plots on it and I am trying to pull 'YData' from just one of the plots. I am trying to use the following:
h=findobj(gca,'Type'); y=get(h,'YData');
I do realize that this is only picking the YData from one plot but I do not know the plot naming structure or how to select between plots in one figure to pull data. How can I do this?
Best Answer