From: Tobias on
Hi,
has anybody an idea if it is possible to export a whole data series from a diagram. It is possible to show/export the data from single points by using the data cursor but I have not found a tool for a whole series.

Thanks
From: Wayne King on
"Tobias " <tobias.aigner(a)elkraft.ntnu.no> wrote in message <htggbc$q93$1(a)fred.mathworks.com>...
> Hi,
> has anybody an idea if it is possible to export a whole data series from a diagram. It is possible to show/export the data from single points by using the data cursor but I have not found a tool for a whole series.
>
> Thanks

Hi Tobias, one way:

plot(randn(100,1));
% click on edit plot, then click on the plot of the data

x = get(gco,'XData');
y = get(gco,'YData');

Wayne
From: Walter Roberson on
Tobias wrote:

> has anybody an idea if it is possible to export a whole data series from
> a diagram. It is possible to show/export the data from single points by
> using the data cursor but I have not found a tool for a whole series.

get() the XData and YData from the plot object.

h = plot(X,Y,'r')

xd = get(h,'XData');
yd = get(h,'YData');
From: Tobias on
"Tobias " <tobias.aigner(a)elkraft.ntnu.no> wrote in message <htggbc$q93$1(a)fred.mathworks.com>...
> Hi,
> has anybody an idea if it is possible to export a whole data series from a diagram. It is possible to show/export the data from single points by using the data cursor but I have not found a tool for a whole series.
>
> Thanks

thanks to both of you!