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