On Sep 5, 2013, at 1:21 PM, Werner Koenig wrote:
Hello List,
in matlab there is a possiblity to have a direct
access to plotted curve. With the following code snippet
you get a curve a handle and therefor you can query
curve data like XData, YData and so on.
h = gco;
co=get(h); % search for active curve
x = co.XData;
y = co.YData;
I have searched in the internet for a similar approach
to do it with octave, but I found no solution.
Is there a way to do this job with octave and when what
is the solution.
So long Werner
I don't think the gco() command is supported by Octave yet. However the rest
of it should work.
h = plot (rand (1, 10));
x = get (h, "xdata");
y = get (h, "ydata");
Ben