MATLAB: Complex closed contour integral

plz explain to me how can I use matlab programe for solution of complex contour integral :
example : find ∮((z+1)dz)/(z^3-2z^2 ) around z-2=1 where 1 is Radius of the circle ?
when I solution it Manually the result was equal:-π*i

Best Answer

fun=@(z)(z+1)/(z^3-2*z^2);
g=@(theta)2+cos(theta)+1i*sin(theta);
gprime=@(theta)-sin(theta)+1i*cos(theta);
q1 = integral(@(t) fun(g(t)).*gprime(t),0,2*pi)
Best wishes
Torsten.