<?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 can I extract specific rows based upon a logical expression?"</title>
	<atom:link href="http://www.aptech.com/questions/how-can-i-extract-specific-rows-based-upon-a-logical-expression/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-can-i-extract-specific-rows-based-upon-a-logical-expression/#answer-1863</link>
		<comments>http://www.aptech.com/questions/how-can-i-extract-specific-rows-based-upon-a-logical-expression/#answer-1863#comments</comments>
		<pubDate>Mon, 08 Oct 2012 13:50:20 +0000</pubDate>
		<dc:creator>aptech</dc:creator>
		
		<guid isPermaLink="false">http://www.aptech.com/questions/how-can-i-extract-specific-rows-based-upon-a-logical-expression/#answer-1863</guid>
		<description><![CDATA[The GAUSS function selif will extract rows from a matrix that match a logical expression. For example: x = { 1 3, -2 4, 2 1, 7 -9 }; mask = x[.,1] .&#62; 0; xout = selif(x, mask); After the &#8230; <a href="http://www.aptech.com/questions/how-can-i-extract-specific-rows-based-upon-a-logical-expression/#answer-1863">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The GAUSS function <strong>selif</strong> will extract rows from a matrix that match a logical expression. For example:</p>
<pre style="padding-left: 30px;">x = { 1 3,
     -2 4,
      2 1,
      7 -9 };

mask = x[.,1] .&gt; 0;
xout = selif(x, mask);</pre>
<p>After the code above the variables will have the following values:</p>
<pre style="padding-left: 30px;">x = 
       1        3 
      -2        4 
       2        1 
       7       -9 
mask = 
       1 
       0 
       1 
       1 
xout = 
       1        3 
       2        1 
       7       -9</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.aptech.com/questions/how-can-i-extract-specific-rows-based-upon-a-logical-expression/#answer-1863/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:41 --