MATLAB: How to plug complex numbers in function

complex function

I have complex circle. Its center is at (2,0) and radius=0.5. I am trying to plug all my domain in a function and trying to plot answer. I have written the code like this but it doesn't work.
theta=0:0.0001:2*pi;
r=0.5;
x=r*cos(theta)-2;
y=r*sin(theta);
s=complex(x,y);
g=(s-1)/((s.^3)+4*(s.^2)+7*s+6)

Best Answer

theta=0:0.0001:2*pi;
r=0.5;
x=2+r*cos(theta);
y=r*sin(theta);
s=complex(x,y);
g=(s-1)./((s.^3)+4*(s.^2)+7*s+6);
plot(real(g),imag(g))