Hi Hua,
> waiting for another kind of solution such as labtalk
If you like to use a function in a command line or in a script, you can define the following LabTalk function:function double chisq(dataset ds1, dataset ds2) {
return total((ds1-ds2)^2/ds1);
}
To run it, you can do like:chisq(col(A),col(B))=
chisq(col(A),col(B))=260.82614122859
To make this function global always usable in any project, follow the prcedure described at:
http://www.originlab.com/doc/LabTalk/guide/On-Starting-Origin#Defining_a_global_function
(Note: If you don't have [Startup] section in Origin.ini in your UFF, you have to add it.)
I hope this helps further.
--Hideo Fujii