Skip to the content.

MAT-Files functions I/O

Files with the .mat extension are files that are in the binary data container format that MATLABĀ® uses.

.mat files are categorized as data files that include variables, functions, arrays and other information.

A = {"Nelson", "saves"; "cell", "array"};
matfilename = [tempdir(), '/doc_mat.mat'];
save(matfilename, 'A')
clear A
st = load(matfilename)
load(matfilename)
A

Previous page

MATLAB is a registered trademark of The MathWorks, Inc.