deg2rad
Convert angle from degrees to radians.
📝Syntax
r = deg2rad(d)
📥Input Arguments
Parameter Description
d a numeric value (double or single)
📤Output Arguments
Parameter Description
r a numeric value
📄Description
d = deg2rad(r) converts angle units from degrees to radians for each element of r.
💡Examples
D = 64.7;
R = deg2rad(D);
radEarth = 6371;
dist = radEarth * R
🔗See Also
rad2deg
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub