curl with symbolic vector

14 visualizaciones (últimos 30 días)
YT
YT el 31 de Oct. de 2019
Editada: KALYAN ACHARJYA el 31 de Oct. de 2019
I'm trying to do use curl with a symbolic vector, but it just keeps on returing a zero vector.
% ∇ × F
syms Fx Fy Fz x y z
curl( [Fx, Fy, Fz], [x, y, z] );
> [ 0; 0; 0 ]
According to this accepted answer it should work just fine, so why isn't it?

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 31 de Oct. de 2019
Editada: KALYAN ACHARJYA el 31 de Oct. de 2019
The answer defined in this way:
syms Fx(x,y,z) Fy(x,y,z) Fz(x,y,z)
curl([Fx Fy,Fz],[x, y, z])
Result:
ans(x, y, z) =
diff(Fz(x, y, z), y) - diff(Fy(x, y, z), z)
diff(Fx(x, y, z), z) - diff(Fz(x, y, z), x)
diff(Fy(x, y, z), x) - diff(Fx(x, y, z), y)

Más respuestas (0)

Categorías

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

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by