
Move result (value) to wave - how to?

MartinG
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
If
works, then do
October 12, 2016 at 08:03 am - Permalink
October 12, 2016 at 08:12 am - Permalink
Thanks - I could have sworn I had tried that (but might have used soft "()" instead :-/
One step closer :-)
October 12, 2016 at 08:16 am - Permalink
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
October 12, 2016 at 09:18 am - Permalink