Numerical Resources for 029:194 Plasma Physics I (2008)
Matlab
Here are the Matlab m-files needed for Homework #4
- electric.m
- magnetic.m
- lorentz.m
- euler1.m
- leapfrog2.m
- spm.m
- Or a tar file containing all of the above hw4_mfiles.tar
This is the m-file for a simple Eulerian particle pusher that we used in Lecture #8.