1 function deg = rad2deg(rad)
3 % RAD2DEG: Convert radians to degrees.
11 % rad : Angle in radians.
15 % deg : Angle in degrees.
19 % Convenient utility function for converting radians to degrees, which are
20 % often the required angular units for functions in the NURBS toolbox.
24 % Convert 0.3 radians to degrees
28 % Copyright (C) 2000 Mark Spink
30 % This program is free software: you can redistribute it and/or modify
31 % it under the terms of the GNU General Public License as published by
32 % the Free Software Foundation, either version 2 of the License, or
33 % (at your option) any later version.
35 % This program is distributed in the hope that it will be useful,
36 % but WITHOUT ANY WARRANTY; without even the implied warranty of
37 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 % GNU General Public License for more details.
40 % You should have received a copy of the GNU General Public License
41 % along with this program. If not, see <http://www.gnu.org/licenses/>.