MATLAB Answers

curl with symbolic vector

조회 수: 3(최근 30일)
YT
YT 31 Oct 2019
편집: KALYAN ACHARJYA 31 Oct 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?

  댓글 수: 0

로그인 to comment.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 31 Oct 2019
편집: KALYAN ACHARJYA 31 Oct 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)

  댓글 수: 1

YT
YT 31 Oct 2019
Easy fix, thanks!

로그인 to comment.

추가 답변(0개)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

제품


릴리스

R2018b

Translated by