I type this :
fun = @(x) exp(-x.^2).*log(x).^2;
q = integral(fun,2,4);
q;
when I run the above code, I get an error message
Undefined function or method 'integral' for input arguments of type 'function_handle'.
Can you help me to solve this problem?
My Matlab is R2010 MATLAB
it works,what is problem?
maybe in 2010 there is function int, http://www.mathworks.com/help/symbolic/int.html
please check it