Main Content

Fichiers MAT volumineux

Accéder à des variables et les modifier sans les charger en mémoire

Utilisez la fonction matfile pour accéder directement à des variables MATLAB® à partir de fichiers MAT sur disque, sans charger les variables entières en mémoire. Lorsque vous créez un nouveau fichier avec matfile, la fonction crée un fichier MAT version 7.3 qui vous permet également d’enregistrer des variables d’une taille supérieure à 2 Go.

Fonctions

matfileAccess and change variables in MAT-file without loading file into memory

Rubriques

  • Save and Load Workspace Variables

    Save some or all variables in the current workspace and reload the variables later during the current MATLAB session, or during another session.

  • Save and Load Parts of Variables in MAT-Files

    Save and load parts of variables directly in MAT-files without loading them into memory using the matfile function.

  • MAT-File Versions

    There are several versions of MAT-files that each support an increasing set of features, starting with MAT-file Version 4.

Résolution des problèmes

Growing Arrays Using matfile Function

When writing a large number of large values to a MAT-file, the size of the file increases in a nonincremental way, which is expected.