From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: function
Date: Fri, 12 Mar 2010 00:35:21 +0000 (UTC)
Organization: Allergan
Lines: 11
Message-ID: <hnc289$slr$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1268354121 29371 (12 Mar 2010 00:35:21 GMT)
NNTP-Posting-Date: Fri, 12 Mar 2010 00:35:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2227092
Xref: comp.soft-sys.matlab:616117

Hi, I recently downloaded Matlab and have the following problem

If I code a simple code on function, e.g. "function y=poly(x,a)"

Matlab gives me an error message

"Error: Function definitions are not permitted at the prompt or in scripts."

Can anyone please let me know as to what is happening?? Any help is deeply appreciated.