Change for cross function from R2019a to R2019b

1 次查看(过去 30 天)
I see that to perform the calculation done by R2019a's cross function I now have to do conj(cross). I see that https://www.mathworks.com/help/matlab/ref/cross.html has been updated, but where else is this notable change documented ?
  2 个评论
James Tursa
James Tursa 2019-11-18
编辑:James Tursa 2019-11-18
Interesting change, although I have never had the need to take the cross product of complex vectors myself.
Manwë
Manwë 2019-11-18
编辑:Manwë 2019-11-18
For instance, in the time harmonic formulation (using complex numbers and replacing E with E*e^{i w t}) of Maxwell equations in a 3d domain, the boundary conditions (Dirichlet or Neumann) are formulated with a cross product.

请先登录,再进行评论。

回答(1 个)

Steven Lord
Steven Lord 2019-12-19
  1 个评论
Tony Avito
Tony Avito 2020-2-14
The update 4 is still returning the complex conjugate :)
Incorrect Code Generation: cross returns complex conjugated results for complex inputs (2088279)
try to run the code as they say:
>> a = magic(3) + 1i.*magic(3);
>> b = ones(3) + 1i.*ones(3);
>> c = cross(a,b)
c =
0.0000 - 2.0000i 0.0000 - 8.0000i 0.0000 +10.0000i
0.0000 - 8.0000i 0.0000 +16.0000i 0.0000 - 8.0000i
0.0000 +10.0000i 0.0000 - 8.0000i 0.0000 - 2.0000i

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 General Applications 的更多信息

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by