<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259704</link>
    <title>MATLAB Central Newsreader - matrix names</title>
    <description>Feed for thread: matrix names</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>Sun, 30 Aug 2009 21:34:03 -0400</pubDate>
      <title>matrix names</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259704#676909</link>
      <author>Nirmal </author>
      <description>how to assign different names for matrices in a for loop..&lt;br&gt;
&lt;br&gt;
for ex&lt;br&gt;
&lt;br&gt;
if x=[1 2]&lt;br&gt;
&lt;br&gt;
if i want I1=[1 1]&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;I2= [1 2]&lt;br&gt;
&lt;br&gt;
for i=1:2&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[what must be here??]=[1   x(i)];&lt;br&gt;
end;&lt;br&gt;
&lt;br&gt;
since i cant write Ii or I(i) m confused how to assign names in a for loop..&lt;br&gt;
&lt;br&gt;
thank u..</description>
    </item>
    <item>
      <pubDate>Sun, 30 Aug 2009 21:40:49 -0400</pubDate>
      <title>Re: matrix names</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259704#676912</link>
      <author>arun</author>
      <description>On Aug 30, 11:34&#160;pm, &quot;Nirmal &quot; &amp;lt;nirmal_2...@yahoo.co.in&amp;gt; wrote:&lt;br&gt;
&amp;gt; how to assign different names for matrices in a for loop..&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; for ex&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if x=[1 2]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; if i want I1=[1 1]&lt;br&gt;
&amp;gt; &#160; &#160; &#160; &#160; &#160; &#160;I2= [1 2]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; for i=1:2&lt;br&gt;
&amp;gt; &#160; &#160; &#160;[what must be here??]=[1 &#160; x(i)];&lt;br&gt;
&amp;gt; end;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; since i cant write Ii or I(i) m confused how to assign names in a for loop..&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; thank u..&lt;br&gt;
&lt;br&gt;
use a(i,:) to fill in the whole row with a vector and a(:,i) to fill a&lt;br&gt;
column...&lt;br&gt;
&lt;br&gt;
ex: a(1,:) = [1,2]; a(2,:) = [2,2];&lt;br&gt;
if not, a(:,1) = [1;2]; a(:,2)= [2;2];&lt;br&gt;
&lt;br&gt;
notice the ',' and ';' separators between row and column assignment&lt;br&gt;
operations.&lt;br&gt;
best, arun.</description>
    </item>
    <item>
      <pubDate>Sun, 30 Aug 2009 21:44:04 -0400</pubDate>
      <title>Re: matrix names</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259704#676913</link>
      <author>us</author>
      <description>&quot;Nirmal &quot; &amp;lt;nirmal_2489@yahoo.co.in&amp;gt; wrote in message &amp;lt;h7er8b$pjg$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; how to assign different names for matrices in a for loop..&lt;br&gt;
&lt;br&gt;
you are absolutely NOT allowed to do this in ML...&lt;br&gt;
otherwise,&lt;br&gt;
1) your license will be revoked by a bot...&lt;br&gt;
2) your computer will be incinerated by law-of-CSSM...&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
us</description>
    </item>
    <item>
      <pubDate>Mon, 31 Aug 2009 00:30:17 -0400</pubDate>
      <title>Re: matrix names</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/259704#676924</link>
      <author>Matt Fig</author>
      <description>&quot;us &quot; &amp;lt;us@neurol.unizh.ch&amp;gt; wrote in message &amp;lt;h7err4$bpq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Nirmal &quot; &amp;lt;nirmal_2489@yahoo.co.in&amp;gt; wrote in message &amp;lt;h7er8b$pjg$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; how to assign different names for matrices in a for loop..&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; you are absolutely NOT allowed to do this in ML...&lt;br&gt;
&amp;gt; otherwise,&lt;br&gt;
&amp;gt; 1) your license will be revoked by a bot...&lt;br&gt;
&amp;gt; 2) your computer will be incinerated by law-of-CSSM...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;a href=&quot;http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F&quot;&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; us&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
You left out the drunken gremlins which come by night.  &lt;br&gt;
They will be named gremlin_1, gremlin_2, gremlin_3, ...</description>
    </item>
  </channel>
</rss>

