Ecco quello che ho fatto:
R=Dp/2;
c=2*pi;
r1=0;
for j=0:jmax
r2=j*Dk;
r3=(j+1)*Dk;
h=1; % ring load
h1=1; % disk load
Z=r2*R;
t=j+1;
j0=besselj(0,Z);
j1=besselj(1,Z);
a1=h/4;
a11=h1/4;
a2=(r3^2)-((2*r1)*(r3-r1))-(r1^2);
I1=a1*a2;
I11=a11*a2;
Ps2(t)=c*j0*I1; % ring load
Pb2(t)=c*j1*I11; % disk load
r1=r2;
end