|
I am using matlab to analyze NMR data that has peaks in a
spectrum. I would like to be able to sum over the spectrum
between certain points that define a peak. Typically, my
data is 32768 data points. So I sum(data(455:655)) to get
the data values I need. But I need to pick out where to
start and stop my data choices, which I can only do as far
as I know by picking out the points using the cursor, then
exporting the data, opening the data structure, and then
reading the value, then going through that process again
for the point on the other side of the peak. I am now
faced with need to do this for many peaks.
Is there a way to automatically export the x-data value
that I just chose using the cursor? I would like to be
able to pick a whole series of points at once, and then
just store them by 2's in a matrix. After that a very
simple macro could sum them all up?
Thanks for your time.
|