Author |
Topic |
|
Tackle
China
6 Posts |
Posted - 10/20/2010 : 11:37:18 PM
|
Origin Ver.7.5 and Service Release (Select Help-->About Origin): Operating System:Win 7 Now I have 4 columns,one column XA and others are all Y columns(B,C,D). I want to get 3 integrals: the integral of Col(B) with Col(A); the integral of Col(C) with Col(A); the integral of Col(D) with Col(A) .Then ,how can I realize these commands in "window script"? May anyone offer exact scripts?I saw "loop(i,2,4) {integ1 (col(1), col($(i))); };"(I thought it was written by VicentLiu), but when I copy it in the window script and press (enter),I can only get"command error" Thank everyone! Tackle |
|
greg
USA
1378 Posts |
Posted - 10/21/2010 : 10:07:10 AM
|
In your version, given that the column plot designations are 'correct' for the integration, the script would be: // BEGIN SCRIPT integrate col(2); wo -a 1; ty -a Integral of col(2) is $(integ.area); copy _integ_area wcol(wks.ncols); integrate col(3); wo -a 1; ty -a Integral of col(3) is $(integ.area); copy _integ_area wcol(wks.ncols); integrate col(4); wo -a 1; ty -a Integral of col(4) is $(integ.area); copy _integ_area wcol(wks.ncols); // END SCRIPT
integ1 is an Origin 8 function. |
|
|
Tackle
China
6 Posts |
Posted - 10/23/2010 : 11:50:04 PM
|
Thank greg! I'm really sorry, next time I will notice. |
|
|
|
Topic |
|
|
|