<?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: How to store a series of vectors from a for loop.</title>
	<atom:link href="http://blogs.mathworks.com/videos/2011/03/09/how-to-store-a-series-of-vectors-from-a-for-loop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2011/03/09/how-to-store-a-series-of-vectors-from-a-for-loop/</link>
	<description>Doug Hull is a proud MathWorker who is on a mission to help you with MATLAB.</description>
	<lastBuildDate>Sat, 18 May 2013 15:12:33 +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/2011/03/09/how-to-store-a-series-of-vectors-from-a-for-loop/#comment-2573</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Thu, 10 Mar 2011 15:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2011/03/09/how-to-store-a-series-of-vectors-from-a-for-loop/#comment-2573</guid>
		<description>@Paulo

It depends.  The point of my videos is to illustrate a concept clearly an concisely.  Pre-allocation would be marginally better in a situation like this, but because the matrices are small it would be only a small improvement.

In real code, I would totally pre-allocate if this was a matrix of any real size, but for small ones I might or might not do it.  I prefer clarity and brevity most of the time.  If speed becomes an issue later, I can easily add that optimization.

Thanks for asking,
Doug</description>
		<content:encoded><![CDATA[<p>@Paulo</p>
<p>It depends.  The point of my videos is to illustrate a concept clearly an concisely.  Pre-allocation would be marginally better in a situation like this, but because the matrices are small it would be only a small improvement.</p>
<p>In real code, I would totally pre-allocate if this was a matrix of any real size, but for small ones I might or might not do it.  I prefer clarity and brevity most of the time.  If speed becomes an issue later, I can easily add that optimization.</p>
<p>Thanks for asking,<br />
Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo Silva</title>
		<link>http://blogs.mathworks.com/videos/2011/03/09/how-to-store-a-series-of-vectors-from-a-for-loop/#comment-2572</link>
		<dc:creator>Paulo Silva</dc:creator>
		<pubDate>Thu, 10 Mar 2011 04:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2011/03/09/how-to-store-a-series-of-vectors-from-a-for-loop/#comment-2572</guid>
		<description>Hi Dough, another nice video tutorial.

The mat array should be preallocated first don&#039;t you agree?</description>
		<content:encoded><![CDATA[<p>Hi Dough, another nice video tutorial.</p>
<p>The mat array should be preallocated first don&#8217;t you agree?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
