LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting regression line

Hi, i am new in programming in labwindows and hope soemone can give me a few advices.  I am trying to plot a regression line with two sets of data (x, y)using the Polyfit function in labwindows. Then i plot the line using the PlotXY. However as the x-array data are not in incremental mode, this will cause the plotted line going back and forth. Found that in order to plot the regression line properly, the x-data must be in inremental mode. To do this, i need to sort the x-data into increment mode first. Doing this with huge amount of samples (1 million samples) takes very long time. Is there a way where i can plot the regression line properly without doing the sorting first?
0 Kudos
Message 1 of 2
(2,729 Views)
Can't you just compute the regression using LinFit() ?
Simpler.
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 2 of 2
(2,719 Views)