Update actionPotential.m