I need to solve an integral equation in the form:
$$A(z)+\int\limits^{z_2}_{z_1}B(z') \frac{z^N}{z^N-z'^N} \frac{e^{i\beta}}{|z|}\mathrm{d}z'=0 $$
where $A(z)$ distribution is known and we are solving for $B(z')$ distribution and $z,z'$ are complex variables. I also know the value of $B(z_2)$.
Can anyone help me how I can solve this equation using MATLAB (preferably numerically)?