Origin Ver. and Service Release (Select Help-->About Origin): 8.6 Operating System: win7 Hi, I am in trouble with the use of vfind x-function,which seems does not work in my dataset. I want to find the maximum value of the second column below. My command is: vfind ix:=col(2) value:=max(col(2)) ox:=col(3);. But I failed to find out the maximum. The new column named "Indices of Found Values" is blank. what's wrong?
I tried your method but I still can not find out the specific data. I used the command "vfind ix:=col(2) value:=max(col(2)) ox:=col(3);" in originlab 2015 and it woks for some simple dataset, such as: 1,2,3,4,...10. I can get the specific value. However, it got a blank column named "Indices of Found Values" for the following dataset: -7.2898 -3.04278E-5 -7.1427 -3.23054E-5 -6.9564 -3.22458E-5 -6.7626 -3.07557E-5 -6.5724 -3.02192E-5 -6.4067 -3.00702E-5 -6.2308 -3.11133E-5 -6.0646 -3.03384E-5 -5.8755 -3.18285E-5 -5.6823 -3.14709E-5 -5.4924 -2.99212E-5 -5.3372 -3.07259E-5 -5.1374 -3.16497E-5 -4.9736 -3.23948E-5 -4.7755 -3.09345E-5 -4.584 -2.90867E-5
Would you please check if the second column has been set to Text(align left)? If so, please set it to Numeric in the Column Properties dialog which can be opened by right-clicking to select Properties from the context menu.
I made the column property the same settings as yours. But It did not work. Did you try my data to check if the command can act on the dataset I provided?
I made the column property the same settings as yours. But It did not work. Did you try my data to check if the command can act on the dataset I provided?
Tried in Origin 2015, again. It does work. You may try to debug. 1. Run this LabTalk script in Script Window: vfind -e. This will open the X-Function Builder. 2. Click the 4th button in the toolbar, which open the Coder Builder 3. Set a breakpoint inside void vfind() 4. Run the LabTalk script in Script Window: vfind ix:=col(2) value:=max(col(2)) ox:=col(3) 5. Step over, line by line till the end, in the Code Builder, and see what's ix, value, ox, and tol in the Variables window.
You may also check the properties of col(3). Now show your screenshot.