This is a problem you may face while you are saving your object. The error is "error closing file matlab save" when using save function , For me happened when saving big structures objects and i solved it by adding parameter '-v7.3'.
Code:
save('-v7.3','filePath','ObjectName');
_________________ M. S. Rakha, Ph.D. Queen's University Canada