gradient_sym(V,X,co​ordinate_system)

版本 1.0.0.0 (401 字节) 作者: mohamed fekry
This Function calculate the gradient of 3D scalar function
276.0 次下载
更新时间 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 CenterMATLAB Answers 中查找有关 Linear Algebra 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0