gradient_sym(V,X,co​ordinate_system)

バージョン 1.0.0.0 (401 Bytes) 作成者: mohamed fekry
This Function calculate the gradient of 3D scalar function
ダウンロード: 264
更新 2018/3/14

ライセンスの表示

This Function calculates the gradient of 3D scalar function in Cartesian, Cylindrical, and Spherical coordinate system.
function gradientSym = gradient _sym(V,X,coordinate_system)
V is the 3D scalar function
X is the parameter which the gradient will calculate with respect to.
coordinate_system is the kind of coordinate system at which the vector field is specified.
the gradient is calculated according to (Engineering Electromagnetics Sixth Edition William H. Hayt, Jr. . John A. Buck)
Example (1):
V=24*cos(pi*y/3)*sin(2*pi*z/3)
gradient_sym(V,[x,y,z],'Cartesian')
Example (2):
V=Vo*exp(-2*r)*sin(3*phi)
gradient_sym(V,[r,phi,z],'Cylindrical')
Example (3):
V=Vo*a/R*cos(2*th)
gradient_sym(V,[R,th,phi],'Spherical')

引用

mohamed fekry (2024). gradient_sym(V,X,coordinate_system) (https://www.mathworks.com/matlabcentral/fileexchange/66482-gradient_sym-v-x-coordinate_system), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2015a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersLinear Algebra についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0