User`s guide
obj2mfile
Purpose 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 n ame 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 o r 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, o r if any of the callback
properties is set to a cell array o r to a function handle,
obj2mfile writes
the d ata stored in t hose properties to a MAT-file.
obj2mfile gives the
MAT-file the same name as the M-file, but uses the
.mat filenam e
extension.
obj2mfile creates the MAT-file in the same directory as
the M-file.
Note obj2mfile does no t 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.
12-37