which packages do I need to use 'integral' function?
Ältere Kommentare anzeigen
which packages do I need to use 'integral' function? I type it on command line in 2011b and get an "Undefined function" error
>> fun = @(x) exp(-x.^2).*log(x).^2;
>> q = integral(fun,0,Inf)
Undefined function 'integral' for input arguments of type 'function_handle'.
1 Kommentar
Xin
am 12 Okt. 2012
Akzeptierte Antwort
Weitere Antworten (2)
Ilham Hardy
am 12 Okt. 2012
0 Stimmen
It is Matlab standard function, only available in R2012b.
1 Kommentar
Andrei Bobrov
am 12 Okt. 2012
2012a
Andreas Goser
am 12 Okt. 2012
0 Stimmen
This was introduced in R2012a:
"The new functions, integral, integral2, and integral3 perform numerical integration with additional support for nonrectangular and unbounded regions of integration. They are the recommended functions for performing quadrature."
Kategorien
Mehr zu Numerical Integration and Differentiation finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!