<?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: Reshape a matrix without using a for loop</title>
	<atom:link href="http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/</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: Doug</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2963</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Tue, 10 Jan 2012 20:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2963</guid>
		<description>Vishnu,

There is no randomness in reshape.  It is deterministic, and will always give the same results for the same inputs.

Doug</description>
		<content:encoded><![CDATA[<p>Vishnu,</p>
<p>There is no randomness in reshape.  It is deterministic, and will always give the same results for the same inputs.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishnu</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2961</link>
		<dc:creator>Vishnu</dc:creator>
		<pubDate>Sun, 08 Jan 2012 22:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2961</guid>
		<description>Doug, I have a quick question, the answer to which I couldn&#039;t find anywhere. Does reshape work the exact same way each time you do it? For example, I want to reshape a 3D matrix to a single vector. However, each dimension means something to me and I need to do this for many 3D matrices and want the entries in the final vector to correspond to the same dimensions. So does reshape go through the 3D matrix in the same order every time I reshape a 3D matrix? Sorry if this is a dumb question.. I&#039;m a matlab beginner. Thanks for your time!</description>
		<content:encoded><![CDATA[<p>Doug, I have a quick question, the answer to which I couldn&#8217;t find anywhere. Does reshape work the exact same way each time you do it? For example, I want to reshape a 3D matrix to a single vector. However, each dimension means something to me and I need to do this for many 3D matrices and want the entries in the final vector to correspond to the same dimensions. So does reshape go through the 3D matrix in the same order every time I reshape a 3D matrix? Sorry if this is a dumb question.. I&#8217;m a matlab beginner. Thanks for your time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2789</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Wed, 21 Sep 2011 06:08:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2789</guid>
		<description>Hi, sorry to bother you i think i got it. Thank you for you wonderful tips!</description>
		<content:encoded><![CDATA[<p>Hi, sorry to bother you i think i got it. Thank you for you wonderful tips!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2788</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Wed, 21 Sep 2011 05:52:38 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2788</guid>
		<description>Do you mean this?

a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20];
b = transpose(a);
c = reshape(b,2,10)

I still get the up and down result. Sorry I&#039;m very new to matlab. Hope you can help.Many many thanks in advance.</description>
		<content:encoded><![CDATA[<p>Do you mean this?</p>
<p>a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20];<br />
b = transpose(a);<br />
c = reshape(b,2,10)</p>
<p>I still get the up and down result. Sorry I&#8217;m very new to matlab. Hope you can help.Many many thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2787</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Tue, 20 Sep 2011 19:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2787</guid>
		<description>@dan,

Transpose it first, then reshape.

Doug</description>
		<content:encoded><![CDATA[<p>@dan,</p>
<p>Transpose it first, then reshape.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2786</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Tue, 20 Sep 2011 15:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2786</guid>
		<description>hello lets say i have 
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]
instead of reshape it up n down which will result to this
1 3 5 7 9 11 13 15 17 19
2 4 6 8 10 12 14 16 18 20

i want it to be like these
1  2  3  4  5  6  7  8  9  10
11 12 13 14 15 16 17 18 19 20

is it possible? Thanks in advance.</description>
		<content:encoded><![CDATA[<p>hello lets say i have<br />
a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20]<br />
instead of reshape it up n down which will result to this<br />
1 3 5 7 9 11 13 15 17 19<br />
2 4 6 8 10 12 14 16 18 20</p>
<p>i want it to be like these<br />
1  2  3  4  5  6  7  8  9  10<br />
11 12 13 14 15 16 17 18 19 20</p>
<p>is it possible? Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2770</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Wed, 31 Aug 2011 15:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2770</guid>
		<description>Kwashie,

What does it even meant to do these operations?  I can not understand what that would even look like.

Doug</description>
		<content:encoded><![CDATA[<p>Kwashie,</p>
<p>What does it even meant to do these operations?  I can not understand what that would even look like.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kwashie</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2768</link>
		<dc:creator>Kwashie</dc:creator>
		<pubDate>Wed, 31 Aug 2011 12:26:57 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2768</guid>
		<description>I have a 1 x 6 matrix which i need to add to a 1 x 12 matrix after which i have to multiply by a 1 x 18 matrix. Can you please guve me an idea on how i con do that. Thanks</description>
		<content:encoded><![CDATA[<p>I have a 1 x 6 matrix which i need to add to a 1 x 12 matrix after which i have to multiply by a 1 x 18 matrix. Can you please guve me an idea on how i con do that. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhull</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2434</link>
		<dc:creator>dhull</dc:creator>
		<pubDate>Mon, 08 Nov 2010 16:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2434</guid>
		<description>@Jerry,

There might be some clever way to do this without for loops, but it would be confusing and non-intuitive.  Just use a clear and easy loop to do this.

Doug</description>
		<content:encoded><![CDATA[<p>@Jerry,</p>
<p>There might be some clever way to do this without for loops, but it would be confusing and non-intuitive.  Just use a clear and easy loop to do this.</p>
<p>Doug</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry</title>
		<link>http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2416</link>
		<dc:creator>Jerry</dc:creator>
		<pubDate>Fri, 05 Nov 2010 21:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.mathworks.com/videos/2009/03/13/reshape-a-matrix-without-using-a-for-loop/#comment-2416</guid>
		<description>Hi Doug,

I also have a question about row-wise transformation.
suppose a=[ 1 2 3 4; 5 6 7 8], if I want to get
b=[1 2; 5 6; 3 4; 7 8].  Is there a simple way of using reshape without for loop?  Thanks in advance.

Jerry</description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>I also have a question about row-wise transformation.<br />
suppose a=[ 1 2 3 4; 5 6 7 8], if I want to get<br />
b=[1 2; 5 6; 3 4; 7 8].  Is there a simple way of using reshape without for loop?  Thanks in advance.</p>
<p>Jerry</p>
]]></content:encoded>
	</item>
</channel>
</rss>

