Origin Ver. and Service Release (Select Help-->About Origin):
OriginPro 2019 (64-bit)
9.6.0.172
Operating System: Win10
Hi,
I have some problem with the sum(). The calculation works fine when I use all rows of column A and B as follows:
range rWavel = col(1);
range rPHI = col(2);
col(6) = sum(rWavel*rPHI) / sum(rPHI);
When I want to calculate the sum only from row 162 to 422 it failed. The calculation starts at row 162 but ends at 261 (the difference of row 422 and 162). Moreover the values in col(6) are different.
range rWavel = col(1)[162:422];
range rPHI = col(2)[162:422];
col(6) = sum(rWavel*rPHI) / sum(rPHI);
Any ideas?
Thanks in advance for any help.