?? a_sub.m
字號:
function a=a_sub(a1,a2)
%
% A=A_SUB(A1,A2)
% Subtract two angles so that the result
% always remains between +/- pi
%
% simple function to get angle subtraction consistent
a=a1-a2;
% get to within 2pi of the right answer
a=a - (2.0*pi*fix(a/(2.0*pi)));
% then leave a between +/- pi
while a>pi
a=a-(2.0*pi);
end
while a< -pi
a=a+(2.0*pi);
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -