<?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 do I combine column vectors with different rows"</title>
	<atom:link href="http://www.aptech.com/questions/how-do-i-combine-column-vectors-with-different-rows/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-do-i-combine-column-vectors-with-different-rows/#answer-1821</link>
		<comments>http://www.aptech.com/questions/how-do-i-combine-column-vectors-with-different-rows/#answer-1821#comments</comments>
		<pubDate>Wed, 03 Oct 2012 03:04:22 +0000</pubDate>
		<dc:creator>aptech</dc:creator>
		
		<guid isPermaLink="false">http://www.aptech.com/questions/how-do-i-combine-column-vectors-with-different-rows/#answer-1821</guid>
		<description><![CDATA[If your data are string arrays, then you could concatenate a &#8220;.&#8221; onto the top (or bottom) of the string array with fewer rows, like this: string A = { "aa", "ab", "ac" }; string B = { "bb", "bc" &#8230; <a href="http://www.aptech.com/questions/how-do-i-combine-column-vectors-with-different-rows/#answer-1821">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If your data are string arrays, then you could concatenate a &#8220;.&#8221; onto the top (or bottom) of the string array with fewer rows, like this:</p>
<pre style="padding-left: 30px;">string A = { "aa", "ab", "ac" };
string B = { "bb", "bc" };

B2 = "."$|B;
AB = A$~B2;
"AB = " AB;</pre>
<p>In the code above, $| performs vertical concatenation of strings and string arrays while $~ performs horizontal concatenation of strings and string arrays.</p>
<p>If what you have is instead character matrices, then you have the option of adding a GAUSS missing value as the extra element or a character dot:</p>
<pre style="padding-left: 30px;"> 
AM = { "aa", "ab", "ac" };
BM = { "bb", "bc" };

BM2 = miss(0,0)|B;
ABM = A~B2;
"AB = " AB;</pre>
<p>The miss function creates a missing value. If you wanted instead to add a character dot, then change the assignment of BM2 to:</p>
<pre style="padding-left: 30px;">BM2 = "."|B;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.aptech.com/questions/how-do-i-combine-column-vectors-with-different-rows/#answer-1821/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:53:53 --