Path: news.mathworks.com!not-for-mail
From: "Rodney Thomson" <readmore@iheartmatlab.blogspot.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: write to different directory
Date: Mon, 21 Jul 2008 09:06:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 42
Message-ID: <g61jhr$qao$1@fred.mathworks.com>
References: <g5trc8$lv0$1@fred.mathworks.com> <g61gga$392$1@fred.mathworks.com> <g61ie6$i07$1@fred.mathworks.com>
Reply-To: "Rodney Thomson" <readmore@iheartmatlab.blogspot.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 1216631163 26968 172.30.248.35 (21 Jul 2008 09:06:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 21 Jul 2008 09:06:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1430350
Xref: news.mathworks.com comp.soft-sys.matlab:480624



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

ok, so what i'm seeing here is that you want to save to a
filename such as : "c:\2432_f" where handles.value contains
the number 2432?

In which case this might be neater:

csvwrite(sprintf('C:\%d_f', ceil(handles.value)), []);


*** BTW sorry if this is a double post. The internet is
experiencing 'issues' here
--
http://iheartmatlab.blogspot.com