User`s guide

R2012a
7-22
Programming
xlsread Reads XLSX Files on All Platforms
The xlsread function now reads data from XLSX files on all platforms, including
support for specifying the range and worksheet number. Previously, this functionality
was available only on Microsoft Windows systems with Excel software.
VideoWriter Supports MPEG-4 Files on Windows 7 Systems
VideoWriter now creates MPEG-4 files with the extension .mp4 or .m4v on Windows 7
systems. For more information, see the VideoWriter reference page.
audioplayer Supports Overlapping Playback
In R2011a, changes that allowed audioplayer to support device selection also disabled
the ability to play overlapping audio samples. With R2012a, overlapping playback is
available again.
For example, play a second sample before the first one completes, and hear audio from
both:
chirpData = load('chirp.mat');
chirpObj = audioplayer(chirpData.y,chirpData.Fs);
gongData = load('gong.mat');
gongObj = audioplayer(gongData.y,gongData.Fs);
play(chirpObj);
play(gongObj);
importdata Returns Different Output for Some Text Files
Previously, the importdata function recognized comments in text files and did not
include them in the output. In addition, importdata parsed files that contained
numeric values and comma, space, or tab delimiters into a numeric array, even when you
specified a delimiter that did not match the contents of the file.
In this release, importdata honors the specified delimiter, and includes comments in
the output. For example, consider a hypothetical file named test.txt with this space-
delimited data: