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