Re: linear regression in 3D data points
From: Predictor (predictr_at_bellatlantic.net)
Date: 03/15/05
- Next message: Costantino Grana: "Re: Gamma correction, is my method correct?"
- Previous message: David Tschumperle: "CImg Library 1.0.8"
- In reply to: twigster: "linear regression in 3D data points"
- Next in thread: twigster: "Re: linear regression in 3D data points"
- Reply: twigster: "Re: linear regression in 3D data points"
- Messages sorted by: [ date ] [ thread ]
Date: 15 Mar 2005 02:54:04 -0800
twigster wrote:
> have to get "the best line" to approximate a set of points in 3D.
> I've imagined using a linear regression of matlab but without success
> till now...
>
> does anyone have any idea of how to do this
What, exactly, are you trying to accomplish? I imagine you have a set
of data with 3 columns and 'n' rows, and that you want to fit a plane
to them? Most often, this is expressed as one column being a linear
function of the other two... is this what you want? If so, try using
MATLAB's '\' operator, possibly adding a column of ones for the
intercept.
-Will Dwinnell
http://will.dwinnell.com
- Next message: Costantino Grana: "Re: Gamma correction, is my method correct?"
- Previous message: David Tschumperle: "CImg Library 1.0.8"
- In reply to: twigster: "linear regression in 3D data points"
- Next in thread: twigster: "Re: linear regression in 3D data points"
- Reply: twigster: "Re: linear regression in 3D data points"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|