Matlab function to zero pad arrays.