ldivide.m
来自「这是支持在MATLAB中进行四元数(哈密顿数)的工具箱」· M 代码 · 共 11 行
M
11 行
function r = ldivide(a, b)% Quaternion left elementwise division is not implemented.% This is because Matlab defines A ./ B to be the matrix with% elements A(i, j)/B(i, j) and A .\ B to be the matrix with elements% B(i, j)/A(i, j). This is not consistent with the ideas of left% and right division in a non-commutative algebra, therefore it is% not supported for quaternion arrays. The operator ./ implements% elementwise division on the right, as expected, but to obtain% elementwise division on the left use: inv(B) .* A% Copyright
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?