Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: matlab random object
Date: Fri, 11 Jul 2008 19:46:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <g58d9q$m2k$1@fred.mathworks.com>
References: <g57qt2$s1s$1@fred.mathworks.com> <g584c3$17v$1@canopus.cc.umanitoba.ca> <g5892p$9q7$1@fred.mathworks.com> <gaOdk.10360$LG4.6975@nlpi065.nbdc.sbc.com> <g58c48$cfa$1@canopus.cc.umanitoba.ca>
Reply-To: "ching l" <chinglnc@hotmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1215805562 22612 172.30.248.37 (11 Jul 2008 19:46:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 11 Jul 2008 19:46:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:478921



I've a little bit of problem here, I started this by using
the  Gui interface...and I'm not sure how can I move around
the boxes with your codes...they should be quite similar
though, 

I created the Play button using the Push button in Gui
Interface, and in the M-File, under the Play function, I did
this..


function select_audio_Callback(hObject, eventdata, handles)

[audio, fs] = wavread('F:\matlab_gui\speech');
samples{1} = {audio, fs};
[audio, fs] = wavread('F:\matlab_gui\gtr');
samples{2} = {audio, fs};

wavplay(samples{ceil(length(samples)*rand)});


I thought it should be quite similar with your concept, but
it doesn't work...it works OK if I just put 
wavplay (audio, 44100) though...


What did I miss out?