The syntax of mp3read() attempts to duplicate wavread() as closely as possible, including trying to duplicate the OPTS.fmt fields and the 'size' syntax etc. Because mpg123 supports on-the-fly downsampling by 2 or 4, and conversion to mono, these are supported as options beyond the first two arguments.
As mentioned above, the mp3read Matlab function depends on two external programs, mpg123 and mp3info, which were originally developed for Linux. To make the script work on a Windows system, you need versions of these programs that work on that architecture. Keansub Lee had made these available at:
(1) Obtain the Million Song Dataset, or Million Song Subset. This demo is based on the Subset, but the commands are identical for the full set. You can download the Subset (2.8 GB) directly from -dataset . We assume this file has been decompressed to the directory MillionSongSubset/ in the current directory (or modify code below). 1e1e36bf2d