In solving equation using 'solve', I tried to change the constant part by a small value say 0.1. But, If I change the value by 0.1 the solution is completely different and far away from the exact solution. Is there any solution?
Show older comments
syms x y z
a = (sqrt((x-SatPos(1,1))^2+(y-SatPos(1,2))^2+(z-SatPos(1,3))^2)==Dis(1));
b = (sqrt((x-SatPos(2,1))^2+(y-SatPos(2,2))^2+(z-SatPos(2,3))^2)==Dis(2));
c = (sqrt((x-SatPos(3,1))^2+(y-SatPos(3,2))^2+(z-SatPos(3,3))^2)==Dis(3));
d = (sqrt((x-SatPos(4,1))^2+(y-SatPos(4,2))^2+(z-SatPos(4,3))^2)==Dis(4));
sol= solve(a,b,c,d);
If I change the value of Dis(1), Dis(2), Dis(3) and Dis(4) by small amount (say by <0.5), the final value of x,y,z are not nearby the exact solution. Is there any way to solve it?
Your suggestion would guide my project a lot.
Thanks in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Programming 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!