Hi
此回复是用英文写的,旨在给您最快的回复。
I understand that you are integrating the equation on ‘alpha’ and ‘z’.
I want to inform you that the usage of the 'int()' function for integration is incorrect. In MATLAB, the appropriate function for integrating an equation with double parameters is 'integral2()'. Please make sure to use 'integral2()' instead of 'int()' for correct integration in your code.
Please refer the following code to resolve your issue.
fun=@(alpha,z)((R+d).^2.*cos(alpha)-R.*(R-d).*cos(alpha)-R.*d).*(R.*d-R.*(R+d).*cos(alpha)+R.^2.*cos(alpha)).*(R+d)./(pi.*d.^2.*(z.^2+(R+d).^2+R.^2-2.*R.*(R+d).*cos(alpha)))
integral2(fun,(-pi*1.0)/6.0,(pi*1.0)/6.0,0,l) % integral2 is used for integration with double parameters
Hope this helps!