"Ashley" wrote in message <firstname.lastname@example.org>... > "Nasser M. Abbasi" <email@example.com> wrote in message <firstname.lastname@example.org>... > > On 3/24/2012 2:37 AM, Ashley wrote: > > > "Nasser M. Abbasi"<email@example.com> wrote in message<firstname.lastname@example.org>... > > > > >> On 3/23/2012 10:00 PM, Ashley wrote: > > >>> I have seen the use of the integral function in this page? > > >>> http://www.mathworks.cn/help/techdoc/ref/integral.html > > >>> but why when I use it in my matlab software it just gave the message as that > > >>> ??? Undefined function or method 'integral' for input arguments of type > > >'function_handle'. Doesn?t mean I don't have the integral function at all? > > >>> And I have searched the internet but there?s little message about this. > > >>> Please help?thanks? > > >> > > > > >> which version of Matlab do you have? > > > > > > > R2011a and I think this version is ok > > > > > > > I do not know why you say version 2011a is "ok", becuase according > > to Mathworks, the integral function is new in version 2012a > > > > http://www.mathworks.com/products/matlab/whatsnew.html > > > > "This version, released with 2012a on 01 March 2012, includes > > the following enhancements: > > > > Numerical integration functions (integral, integral2, integral3) with > > additional algorithms, options, and improper integrals" > > > > --Nasser > sorry,I have thought the 2011a version is high enough and do not know that this function is included in the latest version 2012a ,the matlab software is updated so quickly!
You could always try the quad* functions quadgk is a good start.