<?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: Inserting Rows</title>
	<atom:link href="http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/</link>
	<description>&#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1093599&#38;objectType=author&#34;&#62;Brett&#60;/a&#62; &#38; &#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/loadAuthor.do?objectId=1094142&#38;objectType=author&#34;&#62;Jiro&#60;/a&#62; share favorite user-contributed submissions from the File Exchange.</description>
	<lastBuildDate>Wed, 08 Feb 2012 19:26:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: jiro</title>
		<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-14292</link>
		<dc:creator>jiro</dc:creator>
		<pubDate>Tue, 01 Nov 2011 15:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-14292</guid>
		<description>@saeedeh,

Did you download the function &quot;insertrows&quot; from the File Exchange? The link is in the beginning of this blog post.</description>
		<content:encoded><![CDATA[<p>@saeedeh,</p>
<p>Did you download the function &#8220;insertrows&#8221; from the File Exchange? The link is in the beginning of this blog post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saeedeh</title>
		<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-14289</link>
		<dc:creator>saeedeh</dc:creator>
		<pubDate>Tue, 01 Nov 2011 09:34:36 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-14289</guid>
		<description>Thank you very much for your information about inserting a row to matrix in matlab
I tried it but it seems it doesnot work in matlab 2009!
am I right?
will you please tell me how can I use this in my version?
thanks again</description>
		<content:encoded><![CDATA[<p>Thank you very much for your information about inserting a row to matrix in matlab<br />
I tried it but it seems it doesnot work in matlab 2009!<br />
am I right?<br />
will you please tell me how can I use this in my version?<br />
thanks again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abiyu</title>
		<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-13205</link>
		<dc:creator>Abiyu</dc:creator>
		<pubDate>Wed, 22 Jul 2009 20:32:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-13205</guid>
		<description>Thank you so much!
It really was tremendous help!

Abiyu</description>
		<content:encoded><![CDATA[<p>Thank you so much!<br />
It really was tremendous help!</p>
<p>Abiyu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jiro</title>
		<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11379</link>
		<dc:creator>jiro</dc:creator>
		<pubDate>Thu, 29 May 2008 00:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11379</guid>
		<description>Nice job, Rob. Thanks for posting the file.

I like that you included error checking in the function to make it robust to user errors.</description>
		<content:encoded><![CDATA[<p>Nice job, Rob. Thanks for posting the file.</p>
<p>I like that you included error checking in the function to make it robust to user errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob S.</title>
		<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11317</link>
		<dc:creator>Rob S.</dc:creator>
		<pubDate>Wed, 21 May 2008 13:52:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11317</guid>
		<description>Jiro,

Your pick this week is similar to a small, modular function I use called &quot;putBinA&quot;. It plants a 2D matrix B into a larger 2D matrix A, with the upper-left corner of B at the given coordinates. It qualifies as a &quot;simple function&quot; you asked for, so I posted it to the file exchange (19989). 

Coincidentally, putBinA was also bundled into a previous function that paginates multi-page tif files (scanned documents), which is also in the file exchange (17634).

Hope this is what you&#039;re looking for.</description>
		<content:encoded><![CDATA[<p>Jiro,</p>
<p>Your pick this week is similar to a small, modular function I use called &#8220;putBinA&#8221;. It plants a 2D matrix B into a larger 2D matrix A, with the upper-left corner of B at the given coordinates. It qualifies as a &#8220;simple function&#8221; you asked for, so I posted it to the file exchange (19989). </p>
<p>Coincidentally, putBinA was also bundled into a previous function that paginates multi-page tif files (scanned documents), which is also in the file exchange (17634).</p>
<p>Hope this is what you&#8217;re looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Davis</title>
		<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11287</link>
		<dc:creator>Tim Davis</dc:creator>
		<pubDate>Sun, 18 May 2008 10:13:41 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11287</guid>
		<description>Impressive performance on large sparse matrices.  I tried it on a matrix of dimension 445,315 and 7,479,343 nonzeros (UFget(914) if you want to play with it; a large DNA model).  It took about 8 seconds to insert 42 rows, as compared with about 1.5 seconds just to do C=A&#039;.

That&#039;s impressive because fiddling with the rows of a sparse matrix can easily take O(k*nnz(A)) time, if you do the wrong thing on k rows one at a time.  This function gets it right.

Cool!</description>
		<content:encoded><![CDATA[<p>Impressive performance on large sparse matrices.  I tried it on a matrix of dimension 445,315 and 7,479,343 nonzeros (UFget(914) if you want to play with it; a large DNA model).  It took about 8 seconds to insert 42 rows, as compared with about 1.5 seconds just to do C=A&#8217;.</p>
<p>That&#8217;s impressive because fiddling with the rows of a sparse matrix can easily take O(k*nnz(A)) time, if you do the wrong thing on k rows one at a time.  This function gets it right.</p>
<p>Cool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brett</title>
		<link>http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11272</link>
		<dc:creator>Brett</dc:creator>
		<pubDate>Fri, 16 May 2008 15:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/pick/2008/05/16/inserting-rows/#comment-11272</guid>
		<description>Very useful function, Jiro (and Jos!). I like that 0 works as an index; that makes it easy to interlace matrices A and B, starting _above_ the first row of A. So, for instance:
&gt;&gt; A = magic(3); B = rand(3); C = insertrows(A,B,0:2)
C =
    0.0971    0.3171    0.4387
    8.0000    1.0000    6.0000
    0.8235    0.9502    0.3816
    3.0000    5.0000    7.0000
    0.6948    0.0344    0.7655
    4.0000    9.0000    2.0000

Also, note that with a few transpose operators, INSERTROWS does double duty as INSERTCOLS:
&gt;&gt; D = insertrows(A&#039;,B&#039;,0:2)&#039;
D =
   0.0971   8.0000   0.3171   1.0000   0.4387   6.0000
   0.8235   3.0000   0.9502   5.0000   0.3816   7.0000
   0.6948   4.0000   0.0344   9.0000   0.7655   2.0000

I haven&#039;t tried out Duane&#039;s submission yet, but I&#039;m going to keep Jos and Duane in mind when I need to flexibly intersperse matrices!</description>
		<content:encoded><![CDATA[<p>Very useful function, Jiro (and Jos!). I like that 0 works as an index; that makes it easy to interlace matrices A and B, starting _above_ the first row of A. So, for instance:<br />
>> A = magic(3); B = rand(3); C = insertrows(A,B,0:2)<br />
C =<br />
    0.0971    0.3171    0.4387<br />
    8.0000    1.0000    6.0000<br />
    0.8235    0.9502    0.3816<br />
    3.0000    5.0000    7.0000<br />
    0.6948    0.0344    0.7655<br />
    4.0000    9.0000    2.0000</p>
<p>Also, note that with a few transpose operators, INSERTROWS does double duty as INSERTCOLS:<br />
>> D = insertrows(A&#8217;,B&#8217;,0:2)&#8217;<br />
D =<br />
   0.0971   8.0000   0.3171   1.0000   0.4387   6.0000<br />
   0.8235   3.0000   0.9502   5.0000   0.3816   7.0000<br />
   0.6948   4.0000   0.0344   9.0000   0.7655   2.0000</p>
<p>I haven&#8217;t tried out Duane&#8217;s submission yet, but I&#8217;m going to keep Jos and Duane in mind when I need to flexibly intersperse matrices!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

