Simple parallel processing scripts in matlab using parfor and spmd.