LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find all max values and thier indices in a 2-D array

Thanks.  I am trying to find the first highest value that is not directly next to that little white sphere you see in your picture.   I should have described it better.    Thanks again, and I hope this helps. 
0 Kudos
Message 11 of 18
(2,179 Views)
Well, then simply drop the global max and the 8 adjacent elements and find the new max. See attached (LabVIEW 8.0)..
 
 
Is that what you want???
 

Message Edited by altenbach on 01-14-2007 01:00 PM

Download All
Message 12 of 18
(2,178 Views)

The problem is that I don't know ahead of time how big that white circle in that image you had earlier is?  That's why I searched for the max value then checked to see if this value is close to ANY of the previously found max values, not just the first max value.  It looks like I am just stuck with what I have, I was just hoping for something quicker.  Thanks again for all of your suggestions.

Kevin Baker

0 Kudos
Message 13 of 18
(2,148 Views)

thanks for all useful information here!

I am trying to find the all maximums with indices in an XY graph.

the examples here are really helpful, but I also want to find the places where maximums happen,

I am a beginer, please help!

waiting

thanks 

0 Kudos
Message 14 of 18
(2,056 Views)
Have you tried the Peak Detector VI?  It gives the location, peaks or values, amplitude, and 2nd derivative of peaks or valleys in a array data set. 
Message 15 of 18
(2,043 Views)
thank you for your reply
but sorry
I have XY graph not wave form graph, and the inputs of the peak detector functions do not match with it.
 
waiting
 
0 Kudos
Message 16 of 18
(2,025 Views)
SImply split your x/y data into an x-array and y-array and find the peaks in the Y-array as suggested above. Use the found peak indices on the x-array to get the corresponding x positions. All clear? 🙂
0 Kudos
Message 17 of 18
(2,024 Views)

Thank you so much Altenbach!

0 Kudos
Message 18 of 18
(2,013 Views)