User`s guide
save
Purpose Save image acquisition objects to MAT-file
Syntax save filename
save filename obj1 obj2 ...
save(filename,obj1,obj2,...)
Description save filename saves all variables in the MATLAB workspace to the
MAT-file
filename.Iffilename does not include a file extension, save
appends the .MAT extension to the filename.
save filename obj1 obj2 ... saves the specified image acquisition
objects (
obj1, obj2, etc.) to the MAT-file filename.
save(filename,obj1,obj2,...) is the functional form of the
command, where the file name and image acquisition objects must b e
specified as text strings. If no objects are specified, then all variables
existing in the MATLAB workspace are saved.
Note Any data associated with the image acquisition object is not stored
in the MAT-file. To save the data, bring it into the MATLAB workspace
(using the
getdata function), and then save the variable to the MAT-file.
To return variables from the MAT-file to the MATLAB workspace, use
the
load command. Values for read-only properties are restored to their
default values upon loading. For example, the
Running property is
restored to
'off'.Usethep ropinfo function to determine if a property
is read only.
Examples obj = videoinput('win video', 1);
set(obj, 'Selected Sour ceName', 'input1')
save fname obj
set(obj, 'TriggerF cn', {'mycallback', 5});
save('fname1', 'ob j')
See Also imaqhelp, load, propinfo
12-49