Professional Documents
Culture Documents
%Question 1
psi_deg = linspace(0,360,181);
1
for z = 1:181
psi = degtorad(psi_deg(z));
M_beta(z) = 0;
for i = 1:N
%Lower Limit of the integral
a = r(i);
for j = 1:6
%Point at which the integral is evaluated using
%6-point Gaussian Quadrature
x_j = ((a+b)/2) + x(j)*(b-a)/2;
end
end
end
2
lgd.FontSize = 14;
lgd.Location = 'southeast';