<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172903</link>
    <title>MATLAB Central Newsreader - write to different directory</title>
    <description>Feed for thread: write to different directory</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 19 Jul 2008 22:55:04 -0400</pubDate>
      <title>write to different directory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172903#444144</link>
      <author>ching l</author>
      <description>how to write the file into different directory? &lt;br&gt;
&lt;br&gt;
the 'filename' closed before the end of the actual file name, &lt;br&gt;
which is before '%d_f'&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
csvwrite('C:\(num2str(ceil(handles.value),'%d_f')), []);&lt;br&gt;
&lt;br&gt;
thanks.</description>
    </item>
    <item>
      <pubDate>Mon, 21 Jul 2008 08:14:03 -0400</pubDate>
      <title>Re: write to different directory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172903#444265</link>
      <author>Sachitha Obeysekara</author>
      <description>&quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g5trc8$lv0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; how to write the file into different directory? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; the 'filename' closed before the end of the actual file name, &lt;br&gt;
&amp;gt; which is before '%d_f'&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; csvwrite('C:\(num2str(ceil(handles.value),'%d_f')), []);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; thanks.&lt;br&gt;
&lt;br&gt;
Try using the uigetfile command; it brings up a browse box&lt;br&gt;
where the user can select a location from.....&lt;br&gt;
&lt;br&gt;
Sach</description>
    </item>
    <item>
      <pubDate>Mon, 21 Jul 2008 08:47:02 -0400</pubDate>
      <title>Re: write to different directory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172903#444269</link>
      <author>ching l</author>
      <description>&quot;Sachitha Obeysekara&quot; &lt;br&gt;
&amp;lt;sachitha.obeysekara@nospam.nokia.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g61gga$392$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;lt;g5trc8$lv0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; how to write the file into different directory? &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; the 'filename' closed before the end of the actual file &lt;br&gt;
name, &lt;br&gt;
&amp;gt; &amp;gt; which is before '%d_f'&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; csvwrite('C:\(num2str(ceil(handles.value),'%d_f')), []);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; thanks.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Try using the uigetfile command; it brings up a browse box&lt;br&gt;
&amp;gt; where the user can select a location from.....&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Sach&lt;br&gt;
&lt;br&gt;
The user who will be using this gui is not supposed to know &lt;br&gt;
where the file will be saved to......</description>
    </item>
    <item>
      <pubDate>Mon, 21 Jul 2008 09:06:03 -0400</pubDate>
      <title>Re: write to different directory</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172903#444270</link>
      <author>Rodney Thomson</author>
      <description>&quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g61ie6$i07$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Sachitha Obeysekara&quot; &lt;br&gt;
&amp;gt; &amp;lt;sachitha.obeysekara@nospam.nokia.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; &amp;lt;g61gga$392$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;g5trc8$lv0$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; how to write the file into different directory? &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; the 'filename' closed before the end of the actual file &lt;br&gt;
&amp;gt; name, &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; which is before '%d_f'&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; csvwrite('C:\(num2str(ceil(handles.value),'%d_f')), []);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; thanks.&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Try using the uigetfile command; it brings up a browse box&lt;br&gt;
&amp;gt; &amp;gt; where the user can select a location from.....&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Sach&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The user who will be using this gui is not supposed to know &lt;br&gt;
&amp;gt; where the file will be saved to......&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
ok, so what i'm seeing here is that you want to save to a&lt;br&gt;
filename such as : &quot;c:\2432_f&quot; where handles.value contains&lt;br&gt;
the number 2432?&lt;br&gt;
&lt;br&gt;
In which case this might be neater:&lt;br&gt;
&lt;br&gt;
csvwrite(sprintf('C:\%d_f', ceil(handles.value)), []);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
*** BTW sorry if this is a double post. The internet is&lt;br&gt;
experiencing 'issues' here&lt;br&gt;
--&lt;br&gt;
&lt;a href=&quot;http://iheartmatlab.blogspot.com&quot;&gt;http://iheartmatlab.blogspot.com&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

