<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172871</link>
    <title>MATLAB Central Newsreader - string extra character?</title>
    <description>Feed for thread: string extra character?</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>Fri, 18 Jul 2008 21:57:01 -0400</pubDate>
      <title>string extra character?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172871#444038</link>
      <author>ching l</author>
      <description>a= 80;&lt;br&gt;
csvwrite(num2str(a), [2]);&lt;br&gt;
&lt;br&gt;
the result = 80.dat&lt;br&gt;
&lt;br&gt;
what can I do so that the file name can be 80_1?</description>
    </item>
    <item>
      <pubDate>Fri, 18 Jul 2008 22:20:58 -0400</pubDate>
      <title>Re: string extra character?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172871#444042</link>
      <author>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)</author>
      <description>In article &amp;lt;g5r3jd$s4u$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
ching l &amp;lt;chinglnc@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;a= 80;&lt;br&gt;
&amp;gt;csvwrite(num2str(a), [2]);&lt;br&gt;
&lt;br&gt;
&amp;gt;the result = 80.dat&lt;br&gt;
&lt;br&gt;
&amp;gt;what can I do so that the file name can be 80_1?&lt;br&gt;
&lt;br&gt;
csvwrite(num2str(a,'%d_1.dat'),[2]);&lt;br&gt;
-- &lt;br&gt;
&amp;nbsp;&amp;nbsp;&quot;If there were no falsehood in the world, there would be no&lt;br&gt;
&amp;nbsp;&amp;nbsp;doubt; if there were no doubt, there would be no inquiry; if no&lt;br&gt;
&amp;nbsp;&amp;nbsp;inquiry, no wisdom, no knowledge, no genius.&quot;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-- Walter Savage Landor</description>
    </item>
    <item>
      <pubDate>Fri, 18 Jul 2008 23:05:03 -0400</pubDate>
      <title>Re: string extra character?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172871#444044</link>
      <author>ching l</author>
      <description>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
message &amp;lt;g5r50a$7ro$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; In article &amp;lt;g5r3jd$s4u$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; ching l &amp;lt;chinglnc@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;a= 80;&lt;br&gt;
&amp;gt; &amp;gt;csvwrite(num2str(a), [2]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;the result = 80.dat&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;what can I do so that the file name can be 80_1?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; csvwrite(num2str(a,'%d_1.dat'),[2]);&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt;   &quot;If there were no falsehood in the world, there would be no&lt;br&gt;
&amp;gt;   doubt; if there were no doubt, there would be no&lt;br&gt;
inquiry; if no&lt;br&gt;
&amp;gt;   inquiry, no wisdom, no knowledge, no genius.&quot;&lt;br&gt;
&amp;gt;                                               -- Walter&lt;br&gt;
Savage Landor&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
i really can't see anything wrong with the codes below, &lt;br&gt;
it has the bracket unbalanced error, but it has 4 pairs&lt;br&gt;
brackets which is right....&lt;br&gt;
&lt;br&gt;
csvwrite ((num2str(ceil(handles.randValue)),'%d_1.dat'), [1]);</description>
    </item>
    <item>
      <pubDate>Fri, 18 Jul 2008 23:22:02 -0400</pubDate>
      <title>Re: string extra character?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172871#444047</link>
      <author>matt dash</author>
      <description>&quot;ching l&quot; &amp;lt;chinglnc@hotmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g5r7iv$aus$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
&amp;gt; message &amp;lt;g5r50a$7ro$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; In article &amp;lt;g5r3jd$s4u$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; &amp;gt; ching l &amp;lt;chinglnc@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;a= 80;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;csvwrite(num2str(a), [2]);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;the result = 80.dat&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;what can I do so that the file name can be 80_1?&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; csvwrite(num2str(a,'%d_1.dat'),[2]);&lt;br&gt;
&amp;gt; &amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt;   &quot;If there were no falsehood in the world, there would&lt;br&gt;
be no&lt;br&gt;
&amp;gt; &amp;gt;   doubt; if there were no doubt, there would be no&lt;br&gt;
&amp;gt; inquiry; if no&lt;br&gt;
&amp;gt; &amp;gt;   inquiry, no wisdom, no knowledge, no genius.&quot;&lt;br&gt;
&amp;gt; &amp;gt;                                               -- Walter&lt;br&gt;
&amp;gt; Savage Landor&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; i really can't see anything wrong with the codes below, &lt;br&gt;
&amp;gt; it has the bracket unbalanced error, but it has 4 pairs&lt;br&gt;
&amp;gt; brackets which is right....&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; csvwrite ((num2str(ceil(handles.randValue)),'%d_1.dat'), [1]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Just because you have 4 of each doesn't mean it makes&lt;br&gt;
sense... you have the wrong number of arguments for your&lt;br&gt;
functions. You need this:&lt;br&gt;
&lt;br&gt;
csvwrite(num2str(ceil(handles.randValue),'%d_1.dat'), [1]);&lt;br&gt;
&lt;br&gt;
Also the square brackets arent doing anything. Though it&lt;br&gt;
seems like you want something other than &quot;1&quot; for your last&lt;br&gt;
argument anyway... you realize this will just output a text&lt;br&gt;
file with the number 1 in it, right?</description>
    </item>
    <item>
      <pubDate>Sat, 19 Jul 2008 00:06:02 -0400</pubDate>
      <title>Re: string extra character?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/172871#444049</link>
      <author>ching l</author>
      <description>&quot;matt dash&quot; &amp;lt;n.a@mail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g5r8iq$im9$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;g5r7iv$aus$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in&lt;br&gt;
&amp;gt; &amp;gt; message &amp;lt;g5r50a$7ro$1@canopus.cc.umanitoba.ca&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; In article &amp;lt;g5r3jd$s4u$1@fred.mathworks.com&amp;gt;,&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; ching l &amp;lt;chinglnc@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;a= 80;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;csvwrite(num2str(a), [2]);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;the result = 80.dat&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt;what can I do so that the file name can be 80_1?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; csvwrite(num2str(a,'%d_1.dat'),[2]);&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; -- &lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;   &quot;If there were no falsehood in the world, there would&lt;br&gt;
&amp;gt; be no&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;   doubt; if there were no doubt, there would be no&lt;br&gt;
&amp;gt; &amp;gt; inquiry; if no&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;   inquiry, no wisdom, no knowledge, no genius.&quot;&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;                                               -- Walter&lt;br&gt;
&amp;gt; &amp;gt; Savage Landor&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; i really can't see anything wrong with the codes below, &lt;br&gt;
&amp;gt; &amp;gt; it has the bracket unbalanced error, but it has 4 pairs&lt;br&gt;
&amp;gt; &amp;gt; brackets which is right....&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; csvwrite ((num2str(ceil(handles.randValue)),'%d_1.dat'),&lt;br&gt;
[1]);&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Just because you have 4 of each doesn't mean it makes&lt;br&gt;
&amp;gt; sense... you have the wrong number of arguments for your&lt;br&gt;
&amp;gt; functions. You need this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; csvwrite(num2str(ceil(handles.randValue),'%d_1.dat'), [1]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also the square brackets arent doing anything. Though it&lt;br&gt;
&amp;gt; seems like you want something other than &quot;1&quot; for your last&lt;br&gt;
&amp;gt; argument anyway... you realize this will just output a text&lt;br&gt;
&amp;gt; file with the number 1 in it, right?&lt;br&gt;
&lt;br&gt;
thanks for that. Yea, I know it will just output a text file&lt;br&gt;
with the number 1.&lt;br&gt;
&lt;br&gt;
Ideally, I want to have different arrays when the function&lt;br&gt;
is called everytime,  something like this...&lt;br&gt;
&lt;br&gt;
Callback 1= [1, 2, 3])&lt;br&gt;
Callback 2= [Callback 1: 4, 5, 6])&lt;br&gt;
Callback 3= [Callback 2: 7, 8, 9])&lt;br&gt;
Callback 4 = csvwrite ('string', [callback 3+ callback 4])&lt;br&gt;
&lt;br&gt;
that means, the last callback is collecting all the data and&lt;br&gt;
output it as a text file.&lt;br&gt;
&lt;br&gt;
not sure how to do it though......&lt;br&gt;
&lt;br&gt;
&amp;nbsp;</description>
    </item>
  </channel>
</rss>

