Some KP model simulations in matlab