Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.1 SR3 Operating System: Windows XP
Hello!
I want to get an integral area ratio between two graphs. But I don't want to add these integrated columns to a worksheet.
1. I tried to remove these columns using 'x2' variable but did not work(<== in below code). Why? 2. If you have a better way to implement this function please let me know it. 3. If the numbers of two columns are not same I want to integrate until the smaller one. Is there any good way for it?
del wcol(wks.ncols); // Deletes the last column del wcol(x2); // This deletes the LAST VISIBLE COLUMN IN YOUR WORKSHEET (so do not use it)
The COL( ) function expects a column name or a number and 'X2' is neither. The WCOL( ) function I used above always expects a number so when it encounters something that is not a number, it assumes it is a variable that must be interpreted to get the number.
Here is a variant that uses COL( ) along with wks.ncols property: