<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Aptech &#187; Answers for "How to turn a constant vector into a matrix?"</title>
	<atom:link href="http://www.aptech.com/questions/how-to-turn-a-constant-vector-into-a-matrix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aptech.com</link>
	<description></description>
	<lastBuildDate>Fri, 08 Feb 2013 19:12:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>By: Aptech</title>
		<link>http://www.aptech.com/questions/how-to-turn-a-constant-vector-into-a-matrix/#answer-2970</link>
		<comments>http://www.aptech.com/questions/how-to-turn-a-constant-vector-into-a-matrix/#answer-2970#comments</comments>
		<pubDate>Wed, 19 Dec 2012 00:52:39 +0000</pubDate>
		<dc:creator>Aptech</dc:creator>
		
		<guid isPermaLink="false">http://www.aptech.com/questions/how-to-turn-a-constant-vector-into-a-matrix/#answer-2970</guid>
		<description><![CDATA[You can use the reshape function for this: //Create a row vector X = { 1 2 3 }; //Reshape the row vector into a 5x3 matrix Y = reshape(X, 5, 3); Now Y will equal: 1 2 3 1 &#8230; <a href="http://www.aptech.com/questions/how-to-turn-a-constant-vector-into-a-matrix/#answer-2970">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can use the <tt>reshape</tt> function for this:</p>
<pre><span style="color: #008000;">//Create a row vector</span>
X = { 1 2 3 };

<span style="color: #008000;">//Reshape the row vector into a 5x3 matrix</span>
Y = reshape(X, 5, 3);</pre>
<p>Now <tt>Y</tt> will equal:</p>
<pre>    1 2 3
    1 2 3
    1 2 3
    1 2 3
    1 2 3</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.aptech.com/questions/how-to-turn-a-constant-vector-into-a-matrix/#answer-2970/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.aptech.com @ 2013-02-09 01:41:48 --