Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: mistake in poll method for pattern search?
Date: Tue, 23 Sep 2008 16:43:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 46
Message-ID: <gbb6am$j8v$1@fred.mathworks.com>
References: <gb9eg9$5bm$1@fred.mathworks.com> <gbasgr$efu$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1222188182 19743 172.30.248.38 (23 Sep 2008 16:43:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 23 Sep 2008 16:43:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:491575


"Steven Lord" <slord@mathworks.com> wrote in message <gbasgr$efu$1@fred.mathworks.com>...
> 
> "Dave Brackett" <davebrackett@hotmail.com> wrote in message 
> news:gb9eg9$5bm$1@fred.mathworks.com...
> >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:
> >
> > [ 'MADSPositiveBasisNp1' | 'MADSPositiveBasis2N' | 'GPSPositiveBasisNp1' | 
> > {'GPSPositiveBasis2N'} ]
> >
> >
> > However, when trying to set the option as 'GPSPositiveBasis2N' which is 
> > apparently the default anyway, I get this message;
> >
> > Invalid value for OPTIONS parameter PollMethod: must be 
> > 'GPSPositiveBasisNp1', 'GPSPositiveBasisNp1',
> > 'MADSPositiveBasisNp1', or , 'MADSPositiveBasis2N'.
> >
> >
> > 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.
> 
> I've tried to reproduce this behavior in Release 2008a but was not able to 
> do so:
> 
> 
> psoptimset('PollMethod', 'GPSPositiveBasis2N')
> 
> 
> returned the options structure I expected.  Can you check to see if this 
> command works for you, and if it does what's different between it and the 
> call that errored?
> 
> I was able to confirm that there's a typo in the error message; it's been 
> reported to the development staff.  One of the instances of 
> GPSPositiveBasisNp1 should be GPSPositiveBasis2N.
> 
> -- 
> Steve Lord
> slord@mathworks.com 
> 

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.