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.

© 1996–2020 John W. Eaton
Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.
Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.
Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions.
https://octave.org/doc/v6.3.0/Recorder-Properties.html