Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!p25g2000hsf.googlegroups.com!not-for-mail
From: woodchips@rochester.rr.com
Newsgroups: comp.soft-sys.matlab
Subject: Re: attempt to execute script varargin as a function
Date: Mon, 1 Sep 2008 06:50:53 -0700 (PDT)
Organization: http://groups.google.com
Lines: 24
Message-ID: <9f977ec1-2e3a-45b8-a6bd-fcb9238775fd@p25g2000hsf.googlegroups.com>
References: <g9gfe3$m54$1@fred.mathworks.com>
NNTP-Posting-Host: 66.66.29.246
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1220277054 1963 127.0.0.1 (1 Sep 2008 13:50:54 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 1 Sep 2008 13:50:54 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p25g2000hsf.googlegroups.com; posting-host=66.66.29.246; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en-us) 
Xref: news.mathworks.com comp.soft-sys.matlab:488102



On Sep 1, 6:16=A0am, "Dave Brackett" <davebrack...@hotmail.com> wrote:
> I have been trying to use the Hybrid Particle Swarm
> Optimization function from the file exchange by Alexandros
> Leontitsis:
>
> http://www.mathworks.com/matlabcentral/fileexchange/loadFile
> .do?objectId=3D6497&objectType=3Dfile
>
> I am running this from within an m file but keep getting
> the following error message:
>
> ??? Attempt to execute SCRIPT varargin as a function:
> C:\Program
> Files\MATLAB\R2008a\toolbox\matlab\lang\varargin.m
>
> Error in =3D=3D> main_vectorised at 160
> =A0 =A0 options=3DhPSOoptions(varargin);
>
> Anyone any ideas on how to avoid this problem? Thanks.

What you need to show us, is how you called that
tool.

John