find the max and mark on the curve!
in
Programming Questions
•
21 days ago
HI.! I wanna mark the maximum when the maximum comes! but the result shows that there are lots of maximum out of marking ! why ?
the following is my code!
for(count=1;count<RawX.length-2;count++)
{
if((ScaledX[RawX.length-2-count]-ScaledX[RawX.length-3-count])>0)
if((ScaledX[RawX.length-2-count]-ScaledX[RawX.length-1-count])>0)
{
ellipse(RawX.length-2-count,ScaledX[RawX.length-2-count]+100,8,8);
}
adn the result is
THX!!
1