MATLAB: Area of a closed curve in a complex plane

areacurve

Hi! Is there a way I can compute the area of the following complex curve:
clear all
close all
clc
c=0.1;
a = c/4;
b = 0.01;
lambda = 0.01;
R = sqrt((a+b)^2+lambda^2);
m = sqrt(b^2+lambda^2);
delta = pi/2+atan(b/lambda);
theta=linspace(0,2*pi,10000);
zeta_c = -b + 1i*lambda + R.*exp(1i*theta);
zeta_w= zeta_c + a^2./zeta_c;
figure,
plot(zeta_w), axis equal, grid on
Thanks!

Best Answer

>> polyarea(real(zeta_w),imag(zeta_w))
ans =
0.0029
>>