## Matlab m file function with multiple variables

Hi,

I have a matlab function m file and I want to integrate the function.

Code:
function y = myfun(t,a,b)

y = (1/(2*pi)).*(1./t)*(1i*(a+b));
end

Then when I call the integration in matlab I dont know how to specify a and b whilst integrating over t.

I need to be able to set a and b outside of the function m file and then call the integral.