parsave

Versión 1.2.0.0 (1,06 KB) por Philip
This function allows you to save variables inside a parfor loop.
859 descargas
Actualizado 16 mar 2011

Ver licencia

Unlike MATLAB's solution, the variables are saved with their variable names'. You must call this function for each variable you want to save, but the function will not overwrite previous mat files.

function parsave(fname,data)

var_name=genvarname(inputname(2));
eval([var_name '=data'])

try
save(fname,var_name,'-append')
catch
save(fname,var_name)
end

Citar como

Philip (2024). parsave (https://www.mathworks.com/matlabcentral/fileexchange/30778-parsave), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Parallel for-Loops (parfor) en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.2.0.0

Edited description.

1.0.0.0