fitting vector valued functions
Mostrar comentarios más antiguos
I see Matlab has many different ways to fit a scalar valued function (for example
z = f(x,y)
but is there anything that can help me fit a vector valued function
[u, v] = f(x,y)
Note that the coefficients to the fit would be multiplied by a vector, in the equation of f. for example, a term could be a*[x y]
This causes an error in the scalar fitting routines because the coefficient 'a' to be found by fitting can only be multiplied by a scalar.
Respuestas (3)
Shashank Prasanna
el 14 de En. de 2013
0 votos
From your questions I appears that you want to perform Multivariate Regression where the response is m dimensional
Y = F(X) where Y belongs to |Rm and x belongs to |Rn You can do this using MVREGRESS:
1 comentario
Shashank Prasanna
el 14 de En. de 2013
Of course this is still linear regression.
Matt J
el 14 de En. de 2013
0 votos
LSQCURVEFIT can do multi-variate non-linear fitting.
You need the Optimization Toolbox, of course.
There are also FEX tools like this, which don't require any toolboxes.
It works best when you have only a few nonlinear parameters, though.
Categorías
Más información sobre Get Started with Curve Fitting Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!