Path: news.mathworks.com!not-for-mail
From: "Tom Lane" <tlane@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: undefined input argument of a user defined function
Date: Wed, 27 Mar 2013 13:16:12 -0400
Organization: MathWorks
Lines: 17
Message-ID: <kiv9gs$5cp$1@newscl01ah.mathworks.com>
References: <kiuteg$mbe$1@newscl01ah.mathworks.com>
Reply-To: "Tom Lane" <tlane@mathworks.com>
NNTP-Posting-Host: ah-tlane.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="UTF-8";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Trace: newscl01ah.mathworks.com 1364404572 5529 172.28.17.232 (27 Mar 2013 17:16:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 27 Mar 2013 17:16:12 +0000 (UTC)
In-Reply-To: <kiuteg$mbe$1@newscl01ah.mathworks.com>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: news.mathworks.com comp.soft-sys.matlab:792104

>         z=feval(maxii,a0,a1,t1,t2);
...
> where maxii is a function created by me and works fine with numerical 
> values...now maxtheta suppose to take A0,A1,h as matrix inputs...but after 
> defining A0,A1,h in command line when i am trying to run this function 
> this is giving error message ::
> input argument h is not defined, input argument a0(not A0) is not 
> defined.....plzz help...i need it urgent

This line will invoke maxii with no arguments, then run feval on the result. 
I'm guessing you intended one of these instead:

   z=feval(@maxii,a0,a1,t1,t2);
   z=maxii(a0,a1,t1,t2);

-- Tom