Change for cross function from R2019a to R2019b

2 visualizaciones (últimos 30 días)
Manwë
Manwë el 18 de Nov. de 2019
Comentada: Tony Avito el 14 de Feb. de 2020
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 comentarios
James Tursa
James Tursa el 18 de Nov. de 2019
Editada: James Tursa el 18 de Nov. de 2019
Interesting change, although I have never had the need to take the cross product of complex vectors myself.
Manwë
Manwë el 18 de Nov. de 2019
Editada: Manwë el 18 de Nov. de 2019
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.

Iniciar sesión para comentar.

Respuestas (1)

Steven Lord
Steven Lord el 19 de Dic. de 2019
  1 comentario
Tony Avito
Tony Avito el 14 de Feb. de 2020
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

Iniciar sesión para comentar.

Categorías

Más información sobre General Applications en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by