Main Content

Large MAT Files

Access and change variables without loading into memory

Use the matfile function to access MATLAB® variables directly from MAT files on disk, without loading the full variables into memory. When you create a new file using matfile, the function creates a Version 7.3 MAT file that also lets you save variables larger than 2 GB.

Functions

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

Topics

Troubleshooting

Growing Arrays Using the 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.