M-Files for Matlab

M-Files written by Laura A. Knauth
Mentor: Professor James Aberle

To use these files while in Matlab, enter the same directory in which the '.m' file is stored and type in the file name.


  • Electric field due to a positive point charge in free space

  • Magnetic field due to an infinite line charge

  • Electric field due to an plane sheet of charge

  • Electric field due to a spherical charge distribution in free space


    Note: For the 2-D and 3-D animations, make sure the 'Js.m' and 'U.m' file are in the same directory as the animation file.

  • 2-D animation of a triangular electric field wave emanating from a point source in free space

  • 3-D animation of a triangular electro-magnetic wave emanating from a point source in free space

  • U.m

  • Js.m


    Back to the Academic Works Page

    Laura A. Knauth's HomePage

    Send any comments or questions to email@lauraknauth.com