Contenu principal

load

Load image acquisition object into MATLAB workspace

Description

load filename returns all variables from the MAT file filename to the MATLAB® workspace.

load filename obj1 obj2 returns the specified image acquisition objects from the MAT file specified by filename to the MATLAB workspace.

S = load(filename,obj1,obj2,___) returns the structure S with the specified image acquisition objects from the MAT file filename. The field names in S match the names of the image acquisition objects that were retrieved. If no objects are specified, then all variables existing in the MAT file are loaded.

Values for read-only properties are restored to their default values when loaded. For example, the Running property is restored to 'off'. Use propinfo to determine if a property is read only.

example

Examples

collapse all

Create a video object, then save and later load it.

obj = videoinput('winvideo', 1);
obj.SelectedSourceName = 'input1'
save fname obj         % Saves specified object.
load fname             % Loads all content of the MAT file.
load('fname', 'obj');  % Loads only specified object.

Version History

Introduced before R2006a

See Also

Functions