deg2rad
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Convert angle from degrees to radians.
r = deg2rad(d)
d - a numeric value (double or single)
r - a numeric value
d = deg2rad(r) converts angle units from degrees to radians for each element of r.
D = 64.7;
R = deg2rad(D);
radEarth = 6371;
dist = radEarth * R
1.0.0
initial version
Allan CORNET