matlab version of particle in E/B-field fixed