curve and max value
brc
i try to find the max value of curve with average of point,but its not good idea i think.
idont want to use fittig.so do you have any logical idea to find the max value?
for(i=1;i<=nam;i+=1)
totm=0
totqmax=0
for(j=140;j<=190;j+=1)
tot=0
subs=0
average_tot=0
average_subs=0
for(k=1;k<=10;k+=1)
tot+=m[j+k][i]
subs+=m[j-k][i]
endfor
average_tot=tot/10
average_subs=subs/10
if (average_tot<=m[j][i]&&average_subs<=m[j][i])
tot=m[j][i]
totqmax+=m[j][i]*(2*pi/0.12398)*sin((j-199)/130*(pi/180))
endif
endfor
x[i]=tot
n[i]=totqmax
thanks for your interests.
You can use
wavestats yourWave
.This sets a bunch of variables. One of them is V_max that holds the max value of the wave.
Or simply
print wavemax(yourWave)
.A
January 24, 2011 at 02:03 am - Permalink