Hello Friends, I am new for matlab, I want to calculate a integral but I don't know, how should I do it exactly. My matlab code is here:
_________________________________________________________________________________________________clear all;format long;T = 0.6;m = 3.00;kmin = 1.0;kmax = 10.0;fun = @(k) k.^2/exp(sqrt(k.^2 + m.^2)/T) + 1;q = int (fun,kmin,kmax);_________________________________________________________________________________________________
When I execute the program I got error message:
*??? Undefined function ormethod 'int' for inputarguments of type'function_handle'.Error in ==> nudenNccbar at 14q = int (fun,kmin,kmax);*_ *
Please help me to short out the problem. Thank you.
Best Answer