| Image Acquisition Toolbox | ![]() |
Save image acquisition objects to a MAT-file
Syntax
Description
save filename
saves all variables in the MATLAB workspace to the MAT-file filename. If filename 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 be specified as strings. If no objects are specified, then all variables existing in the MATLAB workspace are saved.
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'. Use the propinfo function to determine if a property is read only.
Examples
obj = videoinput('winvideo', 1); set(obj, 'SelectedSourceName', 'input1') save fname obj set(obj, 'TriggerFcn', {'mycallback', 5}); save('fname1', 'obj')
See Also
| propinfo | set | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |