Origin Ver. and Service Release (Select Help-->About Origin): Originpro 2017 sr2
Operating System: Win7 64
I have a code that I don't know why it doesn't work.
It tells me undefined variable.
get Col(BDHE) -e numpoints; //count of rows in Col(BDHE)
range aaa=[Book]Sheet!Col(BDHE); //variable aaa with [Book]Sheet!Col(BDHE) values
For (ii=1; ii<=numpoints; ii++)
{
if aaa[ii]<(Mean(aaa)+StdDev(aaa))
aab[ii]=aaa[ii]; //using variable aab
else
aab[ii]=""; // cell ii of variable aab empty
if aab[ii]<(Mean(aab)+StdDev(aab))
aac[ii]=aab[ii]; // using variable aac
else
aac[ii]="";
if aac[ii]<(Mean(aac)+StdDev(aac))
aad[ii]=aac[ii]; // using variable aad
else
aad[ii]="";
}
Col(Corte)[1]=Mean(aad)+2*StdDev(aad); // fill row 1 of Col(Corte)
Col(Corte)[2]=Mean(aad)+4*StdDev(aad); // fill row 2 of Col(Corte)
Col(Corte)[3]=Mean(aad)+6*StdDev(aad); // fill row 3 of Col(Corte)
Col(Corte)[4]=Mean(aad)+8*StdDev(aad); // fill row 4 of Col(Corte)