LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a graph which plots the mean of the values in each sample bin from an X Y scatter plot ?

I have used the XY Graph control in LabVIEW to order and plot a set of values as a scatter plot.

I want to calculate the mean of each set of Y values for each discrete X value.

Does anyone know of a VI function which allows you to do this?

Thanks in advance,

FraserD
0 Kudos
Message 1 of 2
(2,573 Views)
I don't believe that there is any built-in VI to do this. I would suggest just building a subVI. First, find the Max and Min values (there's a VI for this) in your X array. Then, starting at the minimum value, find each y element for that x element and take their average. Do this for each x element and you should get what you're looking for.
J.R. Allen
0 Kudos
Message 2 of 2
(2,573 Views)