curl with symbolic vector
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
YT
il 31 Ott 2019
Modificato: KALYAN ACHARJYA
il 31 Ott 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 ]
0 Commenti
Risposta accettata
KALYAN ACHARJYA
il 31 Ott 2019
Modificato: KALYAN ACHARJYA
il 31 Ott 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)
Più risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!