<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236381</link>
    <title>MATLAB Central Newsreader - mistake in poll method for pattern search?</title>
    <description>Feed for thread: mistake in poll method for pattern search?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 23 Sep 2008 00:50:17 -0400</pubDate>
      <title>mistake in poll method for pattern search?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236381#601525</link>
      <author>Dave Brackett</author>
      <description>I think I may have found a mistake in the 'PollMethod' option for Pattern Search. From the help for 'psoptimset', the possible options for the polling method are:&lt;br&gt;
&lt;br&gt;
[ 'MADSPositiveBasisNp1' | 'MADSPositiveBasis2N' | 'GPSPositiveBasisNp1' | {'GPSPositiveBasis2N'} ]&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
However, when trying to set the option as 'GPSPositiveBasis2N' which is apparently the default anyway, I get this message; &lt;br&gt;
&lt;br&gt;
Invalid value for OPTIONS parameter PollMethod: must be 'GPSPositiveBasisNp1', 'GPSPositiveBasisNp1',&lt;br&gt;
'MADSPositiveBasisNp1', or , 'MADSPositiveBasis2N'.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Strangely 'GPSPositiveBasis2N' isn't even in this list so I can't set it as the polling method, while 'GPSPositiveBasisNp1' is listed twice. How come? My Matlab version is 2008a.</description>
    </item>
    <item>
      <pubDate>Tue, 23 Sep 2008 13:55:39 -0400</pubDate>
      <title>Re: mistake in poll method for pattern search?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236381#601625</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Dave Brackett&quot; &amp;lt;davebrackett@hotmail.com&amp;gt; wrote in message &lt;br&gt;
news:gb9eg9$5bm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;I think I may have found a mistake in the 'PollMethod' option for Pattern &lt;br&gt;
&amp;gt;Search. From the help for 'psoptimset', the possible options for the &lt;br&gt;
&amp;gt;polling method are:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; [ 'MADSPositiveBasisNp1' | 'MADSPositiveBasis2N' | 'GPSPositiveBasisNp1' | &lt;br&gt;
&amp;gt; {'GPSPositiveBasis2N'} ]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; However, when trying to set the option as 'GPSPositiveBasis2N' which is &lt;br&gt;
&amp;gt; apparently the default anyway, I get this message;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Invalid value for OPTIONS parameter PollMethod: must be &lt;br&gt;
&amp;gt; 'GPSPositiveBasisNp1', 'GPSPositiveBasisNp1',&lt;br&gt;
&amp;gt; 'MADSPositiveBasisNp1', or , 'MADSPositiveBasis2N'.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Strangely 'GPSPositiveBasis2N' isn't even in this list so I can't set it &lt;br&gt;
&amp;gt; as the polling method, while 'GPSPositiveBasisNp1' is listed twice. How &lt;br&gt;
&amp;gt; come? My Matlab version is 2008a.&lt;br&gt;
&lt;br&gt;
I've tried to reproduce this behavior in Release 2008a but was not able to &lt;br&gt;
do so:&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
psoptimset('PollMethod', 'GPSPositiveBasis2N')&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
returned the options structure I expected.  Can you check to see if this &lt;br&gt;
command works for you, and if it does what's different between it and the &lt;br&gt;
call that errored?&lt;br&gt;
&lt;br&gt;
I was able to confirm that there's a typo in the error message; it's been &lt;br&gt;
reported to the development staff.  One of the instances of &lt;br&gt;
GPSPositiveBasisNp1 should be GPSPositiveBasis2N.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Tue, 23 Sep 2008 16:43:02 -0400</pubDate>
      <title>Re: mistake in poll method for pattern search?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/236381#601662</link>
      <author>Dave Brackett</author>
      <description>&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;gbasgr$efu$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Dave Brackett&quot; &amp;lt;davebrackett@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gb9eg9$5bm$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt;I think I may have found a mistake in the 'PollMethod' option for Pattern &lt;br&gt;
&amp;gt; &amp;gt;Search. From the help for 'psoptimset', the possible options for the &lt;br&gt;
&amp;gt; &amp;gt;polling method are:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; [ 'MADSPositiveBasisNp1' | 'MADSPositiveBasis2N' | 'GPSPositiveBasisNp1' | &lt;br&gt;
&amp;gt; &amp;gt; {'GPSPositiveBasis2N'} ]&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; However, when trying to set the option as 'GPSPositiveBasis2N' which is &lt;br&gt;
&amp;gt; &amp;gt; apparently the default anyway, I get this message;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Invalid value for OPTIONS parameter PollMethod: must be &lt;br&gt;
&amp;gt; &amp;gt; 'GPSPositiveBasisNp1', 'GPSPositiveBasisNp1',&lt;br&gt;
&amp;gt; &amp;gt; 'MADSPositiveBasisNp1', or , 'MADSPositiveBasis2N'.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Strangely 'GPSPositiveBasis2N' isn't even in this list so I can't set it &lt;br&gt;
&amp;gt; &amp;gt; as the polling method, while 'GPSPositiveBasisNp1' is listed twice. How &lt;br&gt;
&amp;gt; &amp;gt; come? My Matlab version is 2008a.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I've tried to reproduce this behavior in Release 2008a but was not able to &lt;br&gt;
&amp;gt; do so:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; psoptimset('PollMethod', 'GPSPositiveBasis2N')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; returned the options structure I expected.  Can you check to see if this &lt;br&gt;
&amp;gt; command works for you, and if it does what's different between it and the &lt;br&gt;
&amp;gt; call that errored?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I was able to confirm that there's a typo in the error message; it's been &lt;br&gt;
&amp;gt; reported to the development staff.  One of the instances of &lt;br&gt;
&amp;gt; GPSPositiveBasisNp1 should be GPSPositiveBasis2N.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I actually found that the reason it was throwing up the error was because I had the poll method option stored within a cell. Once I had extracted the characters from the cell using char() it worked. It was the typo in the error message that was confusing me. Thanks.</description>
    </item>
  </channel>
</rss>

