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