Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Re: min function
Date: Thu, 24 Jul 2008 17:56:03 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 22
Message-ID: <g6afnj$qvn$1@fred.mathworks.com>
References: <g6a467$dtq$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.fr>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1216922163 27639 172.30.248.38 (24 Jul 2008 17:56:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 24 Jul 2008 17:56:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:481610



"ching l" <chinglnc@hotmail.com> wrote in message
<g6a467$dtq$1@fred.mathworks.com>...
> [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.
> 

It's kind of count intuitive for normal people, I know, but
if you wants to force a minimum value under which the
playback values should not go below, then you should use 'max'.

% Bruno