<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: MATLAB Basics video: Storing data in a matrix from a loop</title>
	<atom:link href="http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Fri, 10 Feb 2012 20:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2455</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Mon, 22 Nov 2010 16:59:48 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2455</guid>
		<description>@Santiago

m(loopNumber,:) = vec</description>
		<content:encoded><![CDATA[<p>@Santiago</p>
<p>m(loopNumber,:) = vec</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santiago vacca</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2454</link>
		<dc:creator>santiago vacca</dc:creator>
		<pubDate>Mon, 22 Nov 2010 16:58:30 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2454</guid>
		<description>Dear Doug,

I have a  loop and i create a vector form each run, i want to store those vectors (in a matrix wold be fine). What´s the easy way?

Thanks very much,
Santiago.</description>
		<content:encoded><![CDATA[<p>Dear Doug,</p>
<p>I have a  loop and i create a vector form each run, i want to store those vectors (in a matrix wold be fine). What´s the easy way?</p>
<p>Thanks very much,<br />
Santiago.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2280</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Fri, 24 Sep 2010 20:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2280</guid>
		<description>&lt;pre class = &quot;code&quot;&gt;
a = [1 2 3]
b = [4 5 6]
c = [7 8 9]
M(1,:) = a
M(2,:) = b
M(3,:) = c
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre class = "code">
a = [1 2 3]
b = [4 5 6]
c = [7 8 9]
M(1,:) = a
M(2,:) = b
M(3,:) = c
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tachibana49</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2278</link>
		<dc:creator>Tachibana49</dc:creator>
		<pubDate>Thu, 23 Sep 2010 08:23:45 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-2278</guid>
		<description>Thanks for your tutorial, Doug.
But my problem is how to store polynomial roots into a matrix. 
I got an open channel flow problem and came out with a cubic function with different coefficients at various conditions.
I tried to use loop to get the roots for all conditions and wanted to extract all roots. I used index, but MATLAB requires &quot;In an assignment  A(I) = B, the number of elements in B and I must be the same.&quot;

So how can I store all 3 roots of each polynomial function into a matrix?
I will really appreciate your help.</description>
		<content:encoded><![CDATA[<p>Thanks for your tutorial, Doug.<br />
But my problem is how to store polynomial roots into a matrix.<br />
I got an open channel flow problem and came out with a cubic function with different coefficients at various conditions.<br />
I tried to use loop to get the roots for all conditions and wanted to extract all roots. I used index, but MATLAB requires &#8220;In an assignment  A(I) = B, the number of elements in B and I must be the same.&#8221;</p>
<p>So how can I store all 3 roots of each polynomial function into a matrix?<br />
I will really appreciate your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1860</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Tue, 16 Feb 2010 19:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1860</guid>
		<description>&gt;&gt; m = magic(3)

&lt;pre class=&quot;code&quot;&gt;

m =

     8     1     6
     3     5     7
     4     9     2

&gt;&gt; r = find((m(:,1) == 8) &amp; (m(:,2) &lt; 3))

r =

     1
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>>> m = magic(3)</p>
<pre class="code">

m =

     8     1     6
     3     5     7
     4     9     2

>> r = find((m(:,1) == 8) &#038; (m(:,2) < 3))

r =

     1
</pre>
</pre>]]></content:encoded>
	</item>
	<item>
		<title>By: vinay bansal</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1857</link>
		<dc:creator>vinay bansal</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1857</guid>
		<description>sir, but my problem is related to &quot;find&quot; ...i want to find some value in first column and also some other value in second column.....n then i want that row where the both value exist.</description>
		<content:encoded><![CDATA[<p>sir, but my problem is related to &#8220;find&#8221; &#8230;i want to find some value in first column and also some other value in second column&#8230;..n then i want that row where the both value exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1856</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1856</guid>
		<description>@vinay,

Please watch this:

http://blogs.mathworks.com/videos/2007/08/31/matlab-basics-video-row-and-column-indexing/

Doug</description>
		<content:encoded><![CDATA[<p>@vinay,</p>
<p>Please watch this:</p>
<p><a href="http://blogs.mathworks.com/videos/2007/08/31/matlab-basics-video-row-and-column-indexing/" rel="nofollow">http://blogs.mathworks.com/videos/2007/08/31/matlab-basics-video-row-and-column-indexing/</a></p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinay bansal</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1855</link>
		<dc:creator>vinay bansal</dc:creator>
		<pubDate>Tue, 16 Feb 2010 16:55:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1855</guid>
		<description>thanks for ur kind help sir..... it was really very helpful . i have one more problem sir. thats is as below.

i want to collect data from a matrics . exp: 
%a = [ m n  p ]%
a = [1	4	61;	
     1	5	76;
     1  6       56
     4	1	803;
     4  5       500 ;
     4  6       865;
     5  1       524;
     5  4       125;
     5  6       265  ;
     6  1       57;   
     6  4       341;
     6  5       96]; 

i want to collect data for m = [1 5 6] n = [1 5 6 ]
means m=1 , n= [ 5 6]
      m = 5 , n= [1 6]
      m = 6, n= [1 5]
means third column of matrics [a]
will u plz like to tell me how can get it automatically by applying a loop ?</description>
		<content:encoded><![CDATA[<p>thanks for ur kind help sir&#8230;.. it was really very helpful . i have one more problem sir. thats is as below.</p>
<p>i want to collect data from a matrics . exp:<br />
%a = [ m n  p ]%<br />
a = [1	4	61;<br />
     1	5	76;<br />
     1  6       56<br />
     4	1	803;<br />
     4  5       500 ;<br />
     4  6       865;<br />
     5  1       524;<br />
     5  4       125;<br />
     5  6       265  ;<br />
     6  1       57;<br />
     6  4       341;<br />
     6  5       96]; </p>
<p>i want to collect data for m = [1 5 6] n = [1 5 6 ]<br />
means m=1 , n= [ 5 6]<br />
      m = 5 , n= [1 6]<br />
      m = 6, n= [1 5]<br />
means third column of matrics [a]<br />
will u plz like to tell me how can get it automatically by applying a loop ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1848</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Thu, 11 Feb 2010 15:08:32 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1848</guid>
		<description>@vinay,

It is better to make a cell array than to automatically generate variable names in a series like that.

a{1} = [6 4]
a{2} = [8 9; 4 5]

Notice the curly braces.

Doug</description>
		<content:encoded><![CDATA[<p>@vinay,</p>
<p>It is better to make a cell array than to automatically generate variable names in a series like that.</p>
<p>a{1} = [6 4]<br />
a{2} = [8 9; 4 5]</p>
<p>Notice the curly braces.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinay bansal</title>
		<link>http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1847</link>
		<dc:creator>vinay bansal</dc:creator>
		<pubDate>Thu, 11 Feb 2010 14:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2007/08/20/matlab-basics-video/#comment-1847</guid>
		<description>dear sir, 
            Thanks for your reply . regarding above problem, we have different values of &#039;a&#039; and &#039;b&#039; and &#039;n&#039; is also different for every species(p). means a matrix of n rows and 2 column will come every time from complete running of inner loop. so total 5 matrix will come. exp :  [1 3; 5 6] 
[6 4 ]
[ 8 9 ; 4 5]
[9 6 ;8 7 ; 5 4]
[8 5; 6 2].
i want to store these matrics.... but when i run this , it show only last matrics... is there any solution to store them like X1,X2,X3,X4,X5 ?</description>
		<content:encoded><![CDATA[<p>dear sir,<br />
            Thanks for your reply . regarding above problem, we have different values of &#8216;a&#8217; and &#8216;b&#8217; and &#8216;n&#8217; is also different for every species(p). means a matrix of n rows and 2 column will come every time from complete running of inner loop. so total 5 matrix will come. exp :  [1 3; 5 6]<br />
[6 4 ]<br />
[ 8 9 ; 4 5]<br />
[9 6 ;8 7 ; 5 4]<br />
[8 5; 6 2].<br />
i want to store these matrics&#8230;. but when i run this , it show only last matrics&#8230; is there any solution to store them like X1,X2,X3,X4,X5 ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

