<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264457</link>
    <title>MATLAB Central Newsreader - use variable as variable name</title>
    <description>Feed for thread: use variable as variable name</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>Thu, 29 Oct 2009 13:45:19 -0400</pubDate>
      <title>use variable as variable name</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264457#690650</link>
      <author>Christian </author>
      <description>Hi!&lt;br&gt;
I have a problem with naming variables. E.g.:&lt;br&gt;
&lt;br&gt;
a=2;&lt;br&gt;
b=3;&lt;br&gt;
&lt;br&gt;
And I would like to create a variable c_2_3 and assign a value to it, e.g.:&lt;br&gt;
&lt;br&gt;
c_2_3=4.&lt;br&gt;
&lt;br&gt;
How can I do this automatically, so that Matlab is naming my variables according to the value of a and b? I tried num2str and string concatenation:&lt;br&gt;
&lt;br&gt;
strcat('c',num2str(a),num2str(b))=4, but that does not work...&lt;br&gt;
&lt;br&gt;
Any ideas? Thanks a lot!&lt;br&gt;
&lt;br&gt;
Chris</description>
    </item>
    <item>
      <pubDate>Thu, 29 Oct 2009 13:57:38 -0400</pubDate>
      <title>Re: use variable as variable name</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/264457#690655</link>
      <author>ImageAnalyst</author>
      <description>Read section 4.6 of the FAQ:&lt;br&gt;
&lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt;</description>
    </item>
  </channel>
</rss>

