curl with symbolic vector

6 ビュー (過去 30 日間)
YT
YT 2019 年 10 月 31 日
編集済み: KALYAN ACHARJYA 2019 年 10 月 31 日
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?

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 10 月 31 日
編集済み: KALYAN ACHARJYA 2019 年 10 月 31 日
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 2019 年 10 月 31 日
Easy fix, thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by