Integral calculus of electrostatic field on line charge is classical research contents in electromagnetic field. However, traditional analytic methods can only resolve some questions with regular shapes. With the help of Matlab and its numerically integra%线电荷的静电场积分是电磁场研究的经典内容,然而,传统的解析方法仅仅能计算少数几种规则形状的电场,典型的数值计算例如有限元法等计算量又过大。本文以直线线电荷为例,借助于Matlab的数值积分功能,对直线线电荷的电场强度进行了对比计算,给出矢量电场强度的Matlab计算程序,并使用三维图形进行可视化。该方法可以进一步推广到对任意形状线电荷所形成的矢量电场的计算。
展开▼