Error with symbolic summation of complex matrixes

2 visualizaciones (últimos 30 días)
Ivan
Ivan el 25 de Oct. de 2019
Hi,
I have an issue with a symbolic summation of complex matrices..
In particular, I have defined two matrixes in a symbolic way:
A=(exp(1i*norm(r))./(norm(r).^3)).*(((1-1i*norm(r))./(norm(r).^2))
B=(exp(1i*norm(r))./norm(r).^3).*((cross(r,cross(p,r))));
A and B are 3x1 complex matrixes.
If I perform summation in a symbolic way C=plus(A,B); and then replace symbols by numbers the result is wrong...
Contrary to that, if I calculate it in numbers, first A and then B, and then sum up them - the result is correct...
Does anyone face with such kind of problem? What is wrong with the "plus" operator when I do it in a symbolic way?
Thank you!

Respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

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