Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: min function
Date: Thu, 24 Jul 2008 14:39:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <g6a467$dtq$1@fred.mathworks.com>
Reply-To: "ching l" <chinglnc@hotmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216910343 14266 172.30.248.35 (24 Jul 2008 14:39:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Jul 2008 14:39:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:481540



[audio, fs] = wavread('F:\audio.wav');
samples{6} = {audio, fs};

[audio, fs] = wavread('F:\audio.wav');
samples{10} = {audio, fs};

playback= ceil(length(samples)*rand);

How do I put the minimum value for "playback". I've tried
the min function, but just can't get it right. Need a bit of
help here. Not sure how to put it in right order.

Thanks.