T O P I C R E V I E W |
kensa |
Posted - 09/28/2005 : 9:52:41 PM Origin Version (Select Help-->About Origin): 7.0 Operating System: Windows XP
I have a table including X, Y values(2 dimension) I want to find the 10% point,X of integration value by origin program. plz, help me!
|
3 L A T E S T R E P L I E S (Newest First) |
Mike Buess |
Posted - 09/29/2005 : 07:40:28 AM See your programming guide... Help > Programming.
Mike Buess Origin WebRing Member |
kensa |
Posted - 09/29/2005 : 12:07:51 AM thank you very much~! it's very helpful to me... thanks~~!!!
how can I learn the programming for origin? it's a C program???
|
Mike Buess |
Posted - 09/28/2005 : 11:10:38 PM I think the script below will do what you want. Just copy it to your script window, select all lines and execute by pressing Enter. A column will be created for the integral curve.
integrate col(2); // integrate column 2 # integral values go to the hidden dataset _integ_area, final area to integ.area wo -a 1; // add a column col(3)=_integ_area; // save integral curve to column 3 get col(3) -e npt; // how many points in integral? loop (i,1,npt) { # find 10% point if(col(3)[i]>integ.area/10) break; }; type "area: $(integ.area)"; type "10% point: $(i)"; type "X[$(i)]: $(col(1)[i])"; del -as; // delete _integ_area dataset
Mike Buess Origin WebRing Member |