angle.m
来自「这是支持在MATLAB中进行四元数(哈密顿数)的工具箱」· M 代码 · 共 15 行
M
15 行
function theta = angle(q, a)% ANGLE or phase of quaternion.% (Quaternion overloading of standard Matlab function.)%% The second parameter is optional. If omitted, the result will always be% in the range (0, pi), that is, the quaternion q is regarded as being in% the upper half of a complex plane defined by the axis of q. A reference% unit quaternion defining the direction of the positive imaginary axis of% q may be supplied as the second parameter, in which case the result may% be in the full range from -pi to +pi.%% The optional argument must be either the same size as q or be a scalar% (in which case the same value is used for all elements of q).% Copyright
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?