How can I solve non-linear equations with more equations than unknown variables using objective functions such as nonlinear least square (lsqnonlin)?
Show older comments
Hi, I am currently doing a project which requires fitting.
Suppose that I have two 3x1 vectors (P1 and P2) and two 3x4 matrices (M1 and M2). There are also two unknowns, C1 and C2.
They are related by: P1=M1 C1 and P2=M2 C2.
C1 is in the form of [x*k1 ; y*k1 ; z*k1 ; k1] while C2 is in the form of [x*k2 ; y*k2 ; z*k2 ; k2].
How can I find the most optimal x,y,z,k1, and k2?
I'm not too familiar with fit optimization functions or how to use them so any help would be much appreciated.
Thank you in advance for your help.
Sincerely,
Daniel
Accepted Answer
More Answers (0)
Categories
Find more on Choose a Solver in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!