Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
integral

Subject: integral

From: Ashley

Date: 24 Mar, 2012 03:00:42

Message: 1 of 10

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?

Subject: integral

From: Nasser M. Abbasi

Date: 24 Mar, 2012 03:12:44

Message: 2 of 10

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?

Subject: integral

From: Greg Kilmer

Date: 24 Mar, 2012 04:32:23

Message: 3 of 10

Execute ver in MATLAB.

Also check help @

help integral says that FUN must be a function handle.

which -all integral

will show you if you even have the function.

Thanks, GG Kilmer

http://www.panama-foundations.​com/
http://www.panama-inc.com/

http://www.panamataxes.com/
http://www.invest-in-panama.​com/

Subject: integral

From: Ashley

Date: 24 Mar, 2012 07:37:12

Message: 4 of 10

"Nasser M. Abbasi" <nma@12000.org> wrote in message <jkje3d$9uc$1@speranza.aioe.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

Subject: integral

From: Ashley

Date: 24 Mar, 2012 07:46:18

Message: 5 of 10

Greg Kilmer <ggkilmer9@gmail.com> wrote in message <3099863.3.1332563543241.JavaMail.geo-discussion-forums@vbbfy7>...
> Execute ver in MATLAB.
>
> Also check help @
>
> help integral says that FUN must be a function handle.
>
> which -all integral
>
> will show you if you even have the function.
>
> Thanks, GG Kilmer
>
> http://www.panama-foundations.?com/
> http://www.panama-inc.com/
>
> http://www.panamataxes.com/
> http://www.invest-in-panama.?com/
Thanks and I think this did help a lot and I think I really don't have the function.

Subject: integral

From: Nasser M. Abbasi

Date: 24 Mar, 2012 16:55:28

Message: 6 of 10

On 3/24/2012 2:37 AM, Ashley wrote:
> "Nasser M. Abbasi"<nma@12000.org> wrote in message<jkje3d$9uc$1@speranza.aioe.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

Subject: integral

From: Ashley

Date: 26 Mar, 2012 01:42:11

Message: 7 of 10

"Nasser M. Abbasi" <nma@12000.org> wrote in message <jkku9v$n3t$1@speranza.aioe.org>...
> On 3/24/2012 2:37 AM, Ashley wrote:
> > "Nasser M. Abbasi"<nma@12000.org> wrote in message<jkje3d$9uc$1@speranza.aioe.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!

Subject: integral

From: Ashley

Date: 26 Mar, 2012 10:37:11

Message: 8 of 10

"Nasser M. Abbasi" <nma@12000.org> wrote in message <jkku9v$n3t$1@speranza.aioe.org>...
> On 3/24/2012 2:37 AM, Ashley wrote:
> > "Nasser M. Abbasi"<nma@12000.org> wrote in message<jkje3d$9uc$1@speranza.aioe.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
Thanks for your information,it's very useful.but I cannot find something more about the algorithm,could you give me some information about that?Where can I know more about the information?Thanks very much!

Subject: integral

From: Nasser M. Abbasi

Date: 26 Mar, 2012 17:01:41

Message: 9 of 10

On 3/26/2012 5:37 AM, Ashley wrote:
> "Nasser M. Abbasi"<nma@12000.org> wrote in message<jkku9v$n3t$1@speranza.aioe.org>...


>> 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


> Thanks for your information,it's very useful.but I cannot find something more
>about the algorithm,could you give me some information about that?Where can
>I know more about the information?Thanks very much!

 From the file itself:

% Portions based on "quadva" by Lawrence F. Shampine.
% Ref: L.F. Shampine, "Vectorized Adaptive Quadrature in Matlab",
% Journal of Computational and Applied Mathematics 211, 2008, pp.131-140

--Nasser

Subject: integral

From: Bjorn Gustavsson

Date: 26 Mar, 2012 17:42:11

Message: 10 of 10

"Ashley" wrote in message <jkohhj$p2t$1@newscl01ah.mathworks.com>...
> "Nasser M. Abbasi" <nma@12000.org> wrote in message <jkku9v$n3t$1@speranza.aioe.org>...
> > On 3/24/2012 2:37 AM, Ashley wrote:
> > > "Nasser M. Abbasi"<nma@12000.org> wrote in message<jkje3d$9uc$1@speranza.aioe.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.

HTH,

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us