Visualize a vector field function with matlab
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I am trying to visualize the vector field function
F(x,y,z) = xz * i + xy * j + 3xz * k
with Matlab (2020b).
I tried quiver3, but the examples were not really helpful.
Thanks in advance for help!
Best,
Felix
0 件のコメント
採用された回答
the cyclist
2021 年 9 月 18 日
x = -3 : 0.5 : 3;
y = -3 : 0.5 : 3;
z = -3 : 0.5 : 3;
[xx,yy,zz] = meshgrid(x,y,z);
Fx = xx.*zz;
Fy = xx.*yy;
Fz = 3*xx.*zz;
figure
quiver3(xx,yy,zz,Fx,Fy,Fz)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!