?? taraddms.m
字號:
% taraddms.m
% Scope: This MATLAB macro converts an angle value from radians to
% degrees/minutes/seconds.
% Usage: [adeg,amin,asec] = taraddms(arad)
% Description of parameters:
% arad - input, angle in radians
% adeg - output, angle - degrees component
% amin - output, angle - minutes component
% asec - output, angle - seconds component
% Last update: 04/04/00
% Copyright (C) 1996-00 by LL Consulting. All Rights Reserved.
function [adeg,amin,asec] = taraddms(arad)
temp = 180. * abs(arad) / pi;
adeg = fix(temp);
temp = 60. * (temp - adeg);
amin = fix(temp);
asec = 60. * (temp - amin);
if arad < 0.
adeg = - adeg;
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -