LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find closest value in array?

Solved!
Go to solution

Hello all,

 

I just want to find the closest value from the string array. Which I attached herer as a image.

 

Now, If I want to find value 350 from string array and if it is not in array then in output array there should be display closest value of 350..

 

Thank You for support

Vinal Gandhi

Vinal Gandhi, CLA
0 Kudos
Message 1 of 3
(7,204 Views)
You will definetly have to better define "Closest" here. What do you expect if you have the value 349 and 351?
0 Kudos
Message 2 of 3
(7,199 Views)
Solution
Accepted by topic author Vinal_G

Hi Vinal G,

something like the attached comes to my mind.

 

Hope it helps 

Mike

Message Edited by MikeS81 on 05-12-2010 09:31 AM
Message 3 of 3
(7,197 Views)