writedlm for arrays of dimension 3 or greater

writedlm outputs the newline between slices of an array of dimension 3 or more to the output stream (instead of stdout).