While running this code "function Result = gpsTest(guess)
% distance
p = 26570;
%speed
c = 299792.458;
%Creates Ai, Bi, Ci, ti
angleM=[(pi/2),(pi/3),(pi/3),(pi/3)] ;
angleN=[0,0,(2*pi)/3,(4*pi)/3];
for i=0:3
a = angleM(i+1)*i;
b = angleN(i+1)*i;
A(i+1) = p*cos(a)*cos(b);
B(i+1) = p*cos(a)*sin(b);
C(i+1) = p*sin(a);
disp(i+1)
R = sqrt((A(i+1)-guess(1))^2+(B(i+1)-guess(2))^2+(C(i+1)-guess(3))^2);
t(i+1) = guess(4) + R/c;
% Maximum position error: -1, -1, -1, 1
end
max = 0;
dt = t;
maxOne = t;