"Forrest " <Remove.email@example.com> wrote in message news:firstname.lastname@example.org... > "Steven Lord" <email@example.com> wrote in message > <firstname.lastname@example.org>... >> >> "Forrest " <Remove.email@example.com> wrote in message >> news:firstname.lastname@example.org... >> > I'm using the 'psd' function to take the power spectral >> > density of a waveform. Afterwards I can view the plot > of >> > the psd, however, I can't seem to find the data that is >> > being plotted from the psd. I have the plot, but I > can't >> > find the x and y coordinates. I can't use ginput > because >> > there are 5000 data points. >> >> Get a handle to the line that PSD plotted using > FINDOBJ. Once you have that >> handle, GET the XData and YData properties. >> >> -- >> Steve Lord >> email@example.com >> >> > Steve, > > I'm not very familiar with 'findobj'. Can you walk me > through how to do this.
The first example from DOC FINDOBJ should do it, as long as the line created by PSD is the only line on the current axes:
h = findobj(gca,'Type','line')
If it isn't, you'll need to specify another property that distinguishes the PSD-created lines from the others. Take a look at the other documentation examples for ideas of some of the properties you can use for that purpose.