How to solve a non linear ovedetermined system of equations??
Show older comments
Please help me how solve this, using fmincon fsolve etc I am tired of syntax errors
eq(k)=(sqrt(x1-x0)^2+(y1-y0)^2+(z1-z0)^2)==c*(t1-t0); Unknowns are x0 y0 z0 and t0, eqn(k) are 8. I am not exactly sure what tricks to unleash with the optimization algorithms in matlab. I have even tried to simplify the equation further to sqrt (a1^2+a2^2+a3^2+a4^2==c*(ti-t0)); hoping to simplify it and solve for a1 a2 a3 and a4, find the sqrt and hopefully give a good estimate for the unknowns at this point I am frustrated its not working. I have watched all the optimization videos,they make really look easy but it isnt, someone help please before I loose my mind, thanks.
3 Comments
Alan Weiss
on 28 Feb 2021
I don't understand what you are trying to do. Can you please either write out some mathematical equations that you are trying to solve, or give some code? Your approximate description leaves me baffled as to what you are trying to accomplish.
Alan Weiss
MATLAB mathematical toolbox documentation
Alphonce Owayo
on 28 Feb 2021
Alphonce Owayo
on 28 Feb 2021
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display 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!