Matlab Save Large Mat File, If your file is all zeros the solution is fairly trivial: Make a loop that prints y zeros x times.