Save MAT files more quickly

Version 1.0.0.0 (1,84 ko) par Tim Holy
Saves large numeric arrays more quickly than Matlab's built-in save command
5,1K téléchargements
Mise à jour 4 jan. 2013

Afficher la licence

When working with large arrays, Matlab's 'save' command can be very slow, presumably because Matlab attempts to use compression. This function provides a much faster alternative, at the cost of larger files. It only improves speed for variables that are plain arrays; elements of structures or cell arrays are not altered.

Example:
% First make some data
>> ops = struct('algorithm', 'greedy');
>> A = int32(randi(20, 1000, 1200, 40));
>> B = randn(500, 1800, 60);
% Now save it
>> tic; save /tmp/test ops A B; toc
Elapsed time is 22.980294 seconds.
>> tic; savefast /tmp/test ops A B; toc
Elapsed time is 0.571098 seconds.

Happy saving!

Citation pour cette source

Tim Holy (2026). Save MAT files more quickly (https://fr.mathworks.com/matlabcentral/fileexchange/39721-save-mat-files-more-quickly), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2012b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Version Publié le Notes de version
1.0.0.0