load(
loads data from filename
)filename
.
-
If
filename
is a MAT-file, thenload(filename)
loads variables in the MAT-File into the MATLAB® workspace. -
If
filename
is an ASCII file, thenload(filename)
creates a double-precision array containing data from the file.
load(
treats filename
,'-mat')filename
as a MAT-file, regardless of the file extension.
loads data into S
= load(___)S
, using any of the input arguments in the previous syntax group.
-
If
filename
is a MAT-file, thenS
is a structure array. -
If
filename
is an ASCII file, thenS
is a double-precision array containing data from the file.
load durer.mat % command form load('durer.mat') % function form
load('handel.mat','y')
filename = 'durer.mat'; myVars = {'X','caption'}; S = load(filename,myVars{:})