User`s guide
Programming
9-13
device ID (other than the default, -1), check whether you need to change the ID. To
determine your device IDs, call audiodevinfo.
• audioplayer does not support overlapping playback. For example, in this code, the
second call to play returns an error:
chirpData = load('chirp.mat');
chirpObj = audioplayer(chirpData.y, chirpData.Fs);
gongData = load('gong.mat');
gongObj = audioplayer(gongData.y, gongData.Fs);
play(chirpObj);
play(gongObj);
New Class Forms the Basis for Heterogeneous Hierarchies
The matlab.mixin.Heterogeneous class enables you to form heterogeneous arrays
containing instances of classes derived from this class. You can create heterogeneous
hierarchies of both handle and value classes.
New Class Provides the Basis for Customizable Handle Object Copy
Method
The matlab.mixin.Copyable class enables you to define handle classes that inherit a
copy method whose behavior you can modify in subclasses.
MATLAB Meta-Classes Can Now Form Heterogeneous Arrays
All MATLAB meta-classes are now defined in a heterogeneous hierarchy, which enables
the formation of heterogeneous arrays of meta-class objects. This capability enables
functions like findobj and findprop to return heterogeneous arrays containing
instances of meta-classes of different specific types. The hidden class meta.MetaData
forms the root of the heterogeneous hierarchy.
New High-Level NetCDF Functions
MATLAB now includes several new functions that provide a high-level interface to
NetCDF files. These functions let you read and write to NetCDF files, without having
to use the programming paradigm required by the low-level functions in the netCDF