Path: news.mathworks.com!not-for-mail
From: "ching l" <chinglnc@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: write to different directory
Date: Mon, 21 Jul 2008 08:47:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 26
Message-ID: <g61ie6$i07$1@fred.mathworks.com>
References: <g5trc8$lv0$1@fred.mathworks.com> <g61gga$392$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 1216630022 18439 172.30.248.35 (21 Jul 2008 08:47:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 21 Jul 2008 08:47:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1438759
Xref: news.mathworks.com comp.soft-sys.matlab:480623



"Sachitha Obeysekara" 
<sachitha.obeysekara@nospam.nokia.com> wrote in message 
<g61gga$392$1@fred.mathworks.com>...
> "ching l" <chinglnc@hotmail.com> wrote in message
> <g5trc8$lv0$1@fred.mathworks.com>...
> > how to write the file into different directory? 
> > 
> > the 'filename' closed before the end of the actual file 
name, 
> > which is before '%d_f'
> > 
> > 
> > csvwrite('C:\(num2str(ceil(handles.value),'%d_f')), []);
> > 
> > thanks.
> 
> Try using the uigetfile command; it brings up a browse box
> where the user can select a location from.....
> 
> Sach

The user who will be using this gui is not supposed to know 
where the file will be saved to......