Thread Subject: write to different directory

Subject: write to different directory

From: ching l

Date: 19 Jul, 2008 22:55:04

Message: 1 of 4

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.

Subject: write to different directory

From: Sachitha Obeysekara

Date: 21 Jul, 2008 08:14:03

Message: 2 of 4

"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

Subject: write to different directory

From: ching l

Date: 21 Jul, 2008 08:47:02

Message: 3 of 4

"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......



Subject: write to different directory

From: Rodney Thomson

Date: 21 Jul, 2008 09:06:03

Message: 4 of 4

"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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com