Path: news.mathworks.com!not-for-mail
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$1@newscl01ah.mathworks.com>
References: <iu5b3s$l37$1@newscl01ah.mathworks.com> <iu5klh$e4e$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1309038784 16009 172.30.248.47 (25 Jun 2011 21:53:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 25 Jun 2011 21:53:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:733688

"Roger Stafford" wrote in message <iu5klh$e4e$1@newscl01ah.mathworks.com>...
> "Anna Qureshi" wrote in message <iu5b3s$l37$1@newscl01ah.mathworks.com>...
> > 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