Previous: , Up: Audio Recorder   [Contents][Index]

33.4.3 Properties

The remaining two methods allow you to read or alter the properties of audiorecorder objects.

: value = get (recorder, name)
: values = get (recorder)

Return the value of the property identified by name.

If name is a cell array, return the values of the properties corresponding to the elements of the cell array. Given only the recorder object, return a scalar structure with values of all properties of recorder. The field names of the structure correspond to property names.

: set (recorder, name, value)
: set (recorder, properties)
: properties = set (recorder)

Set the value of property specified by name to a given value.

If name and value are cell arrays of the same size, set each property to a corresponding value. Given a structure with fields corresponding to property names, set the value of those properties to the corresponding field values. Given only the recorder object, return a structure of settable properties.