Hi, but I can't help as there are no details. No error message in MATLAB? Did it finish saving? How large is the mat file?
MATLAB has some restrictions on maximal variable size in a mat file. It also has restrictions on RAM usage. If you want to debug this error,then you need to consider these points.