Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: write to different directory
Date: Mon, 21 Jul 2008 08:14:03 +0000 (UTC)
Organization: Nokia
Lines: 16
Message-ID: <g61gga$392$1@fred.mathworks.com>
References: <g5trc8$lv0$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1216628043 3362 172.30.248.37 (21 Jul 2008 08:14:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 21 Jul 2008 08:14:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1432098
Xref: news.mathworks.com comp.soft-sys.matlab:480619



"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