<?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: ismembc &#8211; undocumented helper function</title> <atom:link href="http://undocumentedmatlab.com/blog/ismembc-undocumented-helper-function/feed/" rel="self" type="application/rss+xml" /><link>http://undocumentedmatlab.com/blog/ismembc-undocumented-helper-function/</link> <description>Charting Matlab's unsupported hidden underbelly</description> <lastBuildDate>Thu, 09 Feb 2012 09:23:08 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.1.1</generator> <item><title>By: Yair Altman</title><link>http://undocumentedmatlab.com/blog/ismembc-undocumented-helper-function/#comment-58796</link> <dc:creator>Yair Altman</dc:creator> <pubDate>Thu, 06 Oct 2011 20:14:42 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=164#comment-58796</guid> <description>@Vivien - the preconditions required by &lt;b&gt;&lt;i&gt;ismembc&lt;/i&gt;&lt;/b&gt; were indeed mentioned in the article:&lt;b&gt;&lt;i&gt;ismembc&lt;/i&gt;&lt;/b&gt; should not be used carelessly: as noted, its inputs must be sorted non-sparse non-NaN values. In the general case we should either ensure this programmatically (as done in &lt;b&gt;&lt;i&gt;setxor&lt;/i&gt;&lt;/b&gt;) or use &lt;b&gt;&lt;i&gt;ismember&lt;/i&gt;&lt;/b&gt;, which handles this for us.</description> <content:encoded><![CDATA[<p>@Vivien &#8211; the preconditions required by <b><i>ismembc</i></b> were indeed mentioned in the article:</p><p><b><i>ismembc</i></b> should not be used carelessly: as noted, its inputs must be sorted non-sparse non-NaN values. In the general case we should either ensure this programmatically (as done in <b><i>setxor</i></b>) or use <b><i>ismember</i></b>, which handles this for us.</p> ]]></content:encoded> </item> <item><title>By: Vivien</title><link>http://undocumentedmatlab.com/blog/ismembc-undocumented-helper-function/#comment-58773</link> <dc:creator>Vivien</dc:creator> <pubDate>Thu, 06 Oct 2011 08:04:58 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=164#comment-58773</guid> <description>It doesn&#039;t work if it&#039;s not sorted. The function stops as soon as it meets a higher value. The given example is bad because the function stops most of the time too early (but ismembc is indeed faster).
&lt;pre lang=&#039;matlab&#039;&gt;
&gt;&gt; a = [3,5]; b = [1,2,3,4,9,5];
&gt;&gt; ismembc(a,b)
ans =
1     0
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>It doesn&#8217;t work if it&#8217;s not sorted. The function stops as soon as it meets a higher value. The given example is bad because the function stops most of the time too early (but ismembc is indeed faster).</p><div
class="wp_syntax"><div
class="code"><pre class="matlab" style="font-family:monospace;">&gt;&gt; a = <span style="color: #080;">&#91;</span><span style="color: #33f;">3</span>,<span style="color: #33f;">5</span><span style="color: #080;">&#93;</span>; b = <span style="color: #080;">&#91;</span><span style="color: #33f;">1</span>,<span style="color: #33f;">2</span>,<span style="color: #33f;">3</span>,<span style="color: #33f;">4</span>,<span style="color: #33f;">9</span>,<span style="color: #33f;">5</span><span style="color: #080;">&#93;</span>;
&gt;&gt; ismembc<span style="color: #080;">&#40;</span>a,b<span style="color: #080;">&#41;</span>
<span style="color: #0000FF;">ans</span> =
     <span style="color: #33f;">1</span>     <span style="color: #33f;">0</span></pre></div></div>]]></content:encoded> </item> <item><title>By: Undocumented Matlab at Nordt Blog</title><link>http://undocumentedmatlab.com/blog/ismembc-undocumented-helper-function/#comment-54334</link> <dc:creator>Undocumented Matlab at Nordt Blog</dc:creator> <pubDate>Thu, 18 Aug 2011 09:35:08 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=164#comment-54334</guid> <description>[...] and infos. (Click here) Especially the performance // hidden functions are to be looked at. The ismembc2 tipp, hell yeah        &#171; One [...]</description> <content:encoded><![CDATA[<p>[...] and infos. (Click here) Especially the performance // hidden functions are to be looked at. The ismembc2 tipp, hell yeah        &laquo; One [...]</p> ]]></content:encoded> </item> <item><title>By: Rob</title><link>http://undocumentedmatlab.com/blog/ismembc-undocumented-helper-function/#comment-45884</link> <dc:creator>Rob</dc:creator> <pubDate>Thu, 02 Jun 2011 00:17:48 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=164#comment-45884</guid> <description>interestingly, it appears that the variable &quot;a&quot; does not have to be sorted for using ismembc(), but the algorithm runs much more quickly if it is.</description> <content:encoded><![CDATA[<p>interestingly, it appears that the variable &#8220;a&#8221; does not have to be sorted for using ismembc(), but the algorithm runs much more quickly if it is.</p> ]]></content:encoded> </item> <item><title>By: Datenum performance &#124; Undocumented Matlab</title><link>http://undocumentedmatlab.com/blog/ismembc-undocumented-helper-function/#comment-42711</link> <dc:creator>Datenum performance &#124; Undocumented Matlab</dc:creator> <pubDate>Thu, 05 May 2011 18:37:37 +0000</pubDate> <guid
isPermaLink="false">http://undocumentedmatlab.com/?p=164#comment-42711</guid> <description>[...] This question reminded me of a similar case that I answered exactly two years ago, of improving the performance of the built-in &lt;i&gt;&lt;b&gt;ismember&lt;/b&gt;&lt;/i&gt; function. In both cases, the solution to the performance question can be found by simply using Matlab&#039;s built-in profiler in order to extract just the core processing functionality. [...]</description> <content:encoded><![CDATA[<p>[...] This question reminded me of a similar case that I answered exactly two years ago, of improving the performance of the built-in <i><b>ismember</b></i> function. In both cases, the solution to the performance question can be found by simply using Matlab&#8217;s built-in profiler in order to extract just the core processing functionality. [...]</p> ]]></content:encoded> </item> </channel> </rss>

<!-- W3 Total Cache: Minify debug info:
Engine:             disk: basic
Theme:              b7666
Template:           single
-->
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: undocumentedmatlab.com @ 2012-02-09 05:58:41 -->

<!-- W3 Total Cache: Page cache debug info:
Engine:             disk: enhanced
Cache key:          blog/ismembc-undocumented-helper-function/feed/_index.xml_gzip
Caching:            enabled
Status:             not cached
Creation Time:      0.948s
Header info:
X-Pingback:         http://undocumentedmatlab.com/blog/xmlrpc.php
Set-Cookie:         wpgb_visit_last_php-default=1328792321; expires=Fri, 08-Feb-2013 12:58:41 GMT; path=/
Link:               <http://undocumentedmatlab.com/?p=164>; rel=shortlink
Content-Type:       text/xml; charset=UTF-8
Last-Modified:      Thu, 09 Feb 2012 12:58:41 GMT
Vary:               Accept-Encoding, Cookie
Expires:            Thu, 09 Feb 2012 13:58:41 GMT
Pragma:             public
Cache-Control:      public, must-revalidate, proxy-revalidate
Etag:               fa86bf1ff6fe53753e40cd749e6c3294
Content-Encoding:   gzip
-->
