From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: quiry
Date: Sat, 25 Jun 2011 21:53:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <iu5lc0$fk9$>
References: <iu5b3s$l37$> <iu5klh$e4e$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1309038784 16009 (25 Jun 2011 21:53:04 GMT)
NNTP-Posting-Date: Sat, 25 Jun 2011 21:53:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: comp.soft-sys.matlab:733688

"Roger Stafford" wrote in message <iu5klh$e4e$>...
> "Anna Qureshi" wrote in message <iu5b3s$l37$>...
> > f= -square(y);
> 1. There is no function named 'square' in the basic matlab set.  Unless it is in some toolbox that I am unaware of or unless you have defined it in an m-file of your own, you will get an error message saying it is undefined.
 - - - - - - -
1a. Also that isn't the right way to define a function.  Read up on anonymous functions in the documentation.

Roger Stafford