Main Content

Große MAT-Dateien

Zugriff und Ändern der Variablen ohne Laden in den Arbeitsspeicher

Verwenden Sie die Funktion matfile, um auf MATLAB®-Variablen direkt aus MAT-Dateien auf der Festplatte zuzugreifen, ohne die vollständigen Variablen in den Arbeitsspeicher zu laden. Bei Erstellung einer neuen Datei über matfile erstellt die Funktion eine MAT-Datei in Version 7.3, mit der ebenfalls Variablen über 2 GB gespeichert werden können.

Funktionen

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

Themen

  • 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.

Fehlersuche

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.