First version of the subroutine. The user defines everything in the file and the simulation runs from there. Plots of E, B and V are also made.
Two new subroutines based on eletron.m. They calculate the trajectory many times, varying the mass or the accelerating speed. On the text output we write the final Y position.
These are old subroutines to compute the eletric and magnetic field at a given position, but they are not used right now, since everything is done inside eletron.m
GUI version of the program. Now the simulation code is inside trc_gui.m... The best would be to have and independent subroutine that could be called from the gui, or from the command line. The fig file tell matlab how to distribute the button on the screen.
Project file and compilated version from matlab's deploytool.