Move result (value) to wave - how to?

I have a loop in which the final result is the AreaXY under 96 individual waves, and the area should be measured between the waves min and max location.
I can do all the calculations and I can print the result in the history - but I simply cannot "save" the result.

For each curve there are 5 different AreaXY's that will be measured from-to different locations. So I aaume easiest is to make a Wave called e.g. AreaXY_results with 5 rows (one for each AreaXY result).
Here is how I print the result:
Print AreaXY(Scan_temp, $num2char(row)+num2str(col)+"_smth", M_waveStats(9)+ Scan_start_temp - 1, M_waveStats(11)+ Scan_start_temp - 1)

How do get the result into e.g. the wave AreaXY_results in position 0?

My logic tells me I should be able to something like:
AreaXY_results(0) = Scan_temp, $num2char(row)+num2str(col)+"_smth", M_waveStats(9)+ Scan_start_temp - 1, M_waveStats(11)+ Scan_start_temp - 1)
But Igor really doesn't like that ;-)

Best
Martin
I just left a reply on your other thread.

If
Print AreaXY(Scan_temp, $num2char(row)+num2str(col)+"_smth", M_waveStats(9)+ Scan_start_temp - 1, M_waveStats(11)+ Scan_start_temp - 1)

works, then do
AreaXY_results[0] = AreaXY(Scan_temp, $num2char(row)+num2str(col)+"_smth", M_waveStats(9)+ Scan_start_temp - 1, M_waveStats(11)+ Scan_start_temp - 1)

Make/O/D/N=5 AREA_RESULTS
Wave AREA_RESULTS
'AREA_RESULTS' [x2pnt('AREA_RESULTS',0.0)] = AREA
sjr51 wrote:
I just left a reply on your other thread.

If
Print AreaXY(Scan_temp, $num2char(row)+num2str(col)+"_smth", M_waveStats(9)+ Scan_start_temp - 1, M_waveStats(11)+ Scan_start_temp - 1)

works, then do
AreaXY_results[0] = AreaXY(Scan_temp, $num2char(row)+num2str(col)+"_smth", M_waveStats(9)+ Scan_start_temp - 1, M_waveStats(11)+ Scan_start_temp - 1)


Thanks - I could have sworn I had tried that (but might have used soft "()" instead :-/
One step closer :-)
DisplayHelpTopic "Waveform Arithmetic and Assignment"

If you use "()" you are accessing the wave by scaled X value. Using "[]" accesses it via point number.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com