I've written a function that seemingly does what I want it to do and alters the wave accordingly. However the 'Abort' icon in the bottom left corner keeps ticking over as if it's still working. Does anybody know the reasons why this might happen? The simple function I wrote is below if anybody spots something wrong with it.
function thresh2diam()wave caspbp
variableifor(i=1;dimsize(caspbp,0);i=i+1)if(caspbp[i][1]<=180)
caspbp[i][1]=0.61elseif(caspbp[i][1]<=333)
caspbp[i][1]=0.68endifendforend
I've written a function that seemingly does what I want it to do and alters the wave accordingly. However the 'Abort' icon in the bottom left corner keeps ticking over as if it's still working. Does anybody know the reasons why this might happen? The simple function I wrote is below if anybody spots something wrong with it.
function thresh2diam()wave caspbp
variableifor(i=1;dimsize(caspbp,0);i=i+1)if(caspbp[i][1]<=180)
caspbp[i][1]=0.61elseif(caspbp[i][1]<=333)
caspbp[i][1]=0.68endifendforend
I've written a function that seemingly does what I want it to do and alters the wave accordingly. However the 'Abort' icon in the bottom left corner keeps ticking over as if it's still working. Does anybody know the reasons why this might happen? The simple function I wrote is below if anybody spots something wrong with it.
function thresh2diam()wave caspbp
variableifor(i=1;dimsize(caspbp,0);i=i+1)if(caspbp[i][1]<=180)
caspbp[i][1]=0.61elseif(caspbp[i][1]<=333)
caspbp[i][1]=0.68endifendforend
for(i=1;dimsize(caspbp,0);i=i+1)
does not impose a limit on the loop
you may have meant to write
for(i=1;i<dimsize(caspbp,0);i=i+1)
Thanks! Yes the intention was to impose a limit, my eyes must be tired!
for (i=1;dimsize(caspbp,0);i=i+1)
does not impose a limit on the loop
you may have meant to write
for (i=1;i < dimsize(caspbp,0);i=i+1)
September 14, 2012 at 06:57 am - Permalink
Thanks! Yes the intention was to impose a limit, my eyes must be tired!
September 14, 2012 at 07:22 am - Permalink