parsave
parsave allows to save variables to a .mat-file while in a parfor loop.
This is not possible using the regular 'save' command.
SYNTAX: parsave(FileName,Variable1,Variable2,...)
NOTE: Unlike 'save', do NOT pass the variable names to this function
(e.g. 'Variable') but instead the variable itself, so without using the
quotes. An example of correct usage is:
CORRECT: parsave('file.mat',x,y,z);
This would be INCORRECT: parsave('file.mat','x','y','z'); %Incorrect!
Copyright (c) 2016 Joost H. Weijs
ENS Lyon, France
<jhweijs@gmail.com>
Cite As
J Weijs (2026). parsave (https://www.mathworks.com/matlabcentral/fileexchange/57933-parsave), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | output suppression |
