From: Alex on 17 Dec 2009 23:03 I have a bunch of data points (x,y,z) and I know that these points go asymptotically like z = ax + by for some a,b. Is there some sort of "3D" least fit capability in MATLAB that will allow me to approximate a,b given my collection of points (x,y,z)?
From: Rune Allnor on 17 Dec 2009 23:20 On 18 Des, 05:03, "Alex " <alexmca...(a)gmail.com> wrote: > I have a bunch of data points (x,y,z) and I know that these points go asymptotically like z = ax + by for some a,b. Is there some sort of "3D" least fit capability in MATLAB that will allow me to approximate a,b given my collection of points (x,y,z)? Yes. Rune
From: Torsten Hennig on 17 Dec 2009 16:56 > I have a bunch of data points (x,y,z) and I know that > these points go asymptotically like z = ax + by for > some a,b. Is there some sort of "3D" least fit > capability in MATLAB that will allow me to > approximate a,b given my collection of points > (x,y,z)? Build a matrix M with rows (x_i,y_i) (1 <= i <= n) and a vector v = (z_1,...,z_n). Then M\v gives you the optimal parameters a and b for your linear least-squares problem from above. Best wishes Torsten.
From: Alex on 18 Dec 2009 13:12 Torsten Hennig <Torsten.Hennig(a)umsicht.fhg.de> wrote in message <862752047.25898.1261123039725.JavaMail.root(a)gallium.mathforum.org>... > > I have a bunch of data points (x,y,z) and I know that > > these points go asymptotically like z = ax + by for > > some a,b. Is there some sort of "3D" least fit > > capability in MATLAB that will allow me to > > approximate a,b given my collection of points > > (x,y,z)? > > Build a matrix M with rows (x_i,y_i) (1 <= i <= n) > and a vector v = (z_1,...,z_n). > Then M\v gives you the optimal parameters a and b for > your linear least-squares problem from above. > > Best wishes > Torsten. Wonderful, thank you.
From: Matt J on 18 Dec 2009 15:48 Torsten Hennig <Torsten.Hennig(a)umsicht.fhg.de> wrote in message <862752047.25898.1261123039725.JavaMail.root(a)gallium.mathforum.org>... > > I have a bunch of data points (x,y,z) and I know that > > these points go asymptotically like z = ax + by for > > some a,b. Is there some sort of "3D" least fit > > capability in MATLAB that will allow me to > > approximate a,b given my collection of points > > (x,y,z)? > > Build a matrix M with rows (x_i,y_i) (1 <= i <= n) > and a vector v = (z_1,...,z_n). > Then M\v gives you the optimal parameters a and b for > your linear least-squares problem from above. Just to be clear, you would do this for data points (x_i,y_i) taken from the asymptotic region of the trend in z... > Torsten.
|
Pages: 1 Prev: Problems Next: Matrix singularity in Pentium 4 but not in core 2 duo cpu |