Does lsqnonlin handle a matrix objective function?
Mostrar comentarios más antiguos
How does lsqnonlin handle a matrix?
assuming something like
[Final_Ests,resNormal] = lsqnonlin(LSQ_obj_fnctn,initialGuess,LB,UB);
will the results be the same if LSQ_obj_fnctn is a matrix vs being a single vector made up of matrix rows?
i.e. matrix:
LSQ_obj_fnctn = rand(4,10)
vs. vector made up of matrix rows
LSQ_obj_fnctn = rand(1,40)
To be clear, I'm not actually trying to minimize a randomly generated matrix or vector, just trying to show an example of the form of what I'm passing to lsqnonlin. My results seem to indicate both matrix and vector objective functions give the same result, but I just want to be triple sure I'm not misunderstanding something.
Thanks!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Linear Least Squares 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!