load
- : load
file¶ - : load
(file)¶ - : load
(file, var1, …)¶ - :
S =load(…)¶ Load variables from a file.
The file format is detected from the contents: native text or binary, MAT-files (versions 4 through 7, also compressed with gzip), HDF5 files and plain numeric text matrices. The options -text, -binary, -mat, -hdf5 and -ascii may be given before or after the file name to state the expected format.
Names after the file select the variables to load (wildcards are allowed). With an output argument the variables are returned as the fields of a structure; a plain numeric text file is returned as the matrix itself. Without an output the variables are created in the workspace; a numeric text file creates a variable named after the file.