Eletromagnetism-Like Algorithm Matlab