User`s guide

17 Functions — Alphabetical List
17-62
obj2mfile
Convert video input objects to MATLAB code
Syntax
obj2mfile(obj,filename)
obj2mfile(obj,filename,syntax)
obj2mfile(obj,filename,syntax,mode)
obj2mfile(obj,filename,syntax,mode,reuse)
Description
obj2mfile(obj,filename) converts the video input object obj into an M-file with the
name specified by filename. The M-file contains the MATLAB code required to create
the object and set its properties. obj can be a single video input object or an array of
objects.
The obj2mfile function simplifies the process of restoring an object with specific
property settings and can be used to create video input objects. obj2mfile also creates
and configures the video source object associated with the video input object.
If filename does not specify an extension or if it has an extension other than the
MATLAB M-file extension (.m), obj2mfile appends .m to the end of filename. To
recreate obj, execute the M-file by calling filename.
If the UserData property of the object is set, or if any of the callback properties is set to
a cell array or to a function handle, obj2mfile writes the data stored in those properties
to a MAT-file. obj2mfile gives the MAT-file the same name as the M-file, but uses the
.mat filename extension. obj2mfile creates the MAT-file in the same directory as the
M-file.
Note obj2mfile does not restore the values of read-only properties. For example, if
an object is saved with a Logging property set to 'on', the object is recreated with
a Logging property set to 'off' (the default value). Use the propinfo function to
determine if a property is read only.