LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

least squares and graph

I need some help with a homework problem.  In our class we are pretty much self teaching ourselves Labview and have received very little guidance, so this may seem simple but I'm completely lost.

 

 

I need to plot the following data:

 

Y:  1.3, 4.6, 17.2, 82.8, 171.5, 1227.0

X:   0.4, 1.0, 2.0, 2.8, 5.1, 9.9

 

and then determine a suitable least squares fit of the data.  We then need to do a bit of statistics on the data and fit the data with 95% confidence.

 

any help would be huegly appreciated...i need something to get me pointed in the right direction..at least to get the VI built, i can so the stas myself.

 

Thanks!

0 Kudos
Message 1 of 3
(5,652 Views)

I would focus your attention on the Mathematics palette, specifically the Fitting palette.  I have listed a few resources below that should help ease your learning curve:

 

K12Lab LabVIEW Resources

 

NI LabVIEW 101: Video Instruction for Students

 

Getting Started with NI LabVIEW Student Training

 

Remember, homework is supposed to be a learning experience, so have fun!

 

Regards,

 

Alexander M

National Instruments

0 Kudos
Message 2 of 3
(5,648 Views)

You already got some good advice, but you should also be careful with terminology.

 

"Least squares fit" only specifies the analysis, it does not specify the model. (linear, non-linear, etc.)

Do you want a linear least squares fit to the data or some other model (polynomial, etc.)? 

 

Since your data is not spaced equally in X, you need an xy graph to display it. The labVIEW help and the examples shipped with LabVIEW will tell you how to structure the data for it (there are many possibilities).

 

 

0 Kudos
Message 3 of 3
(5,622 Views)