%-------START OF CODE--------
function [S,Tm] = principal(Sxy)
l1=Sxy(1,1)+Sxy(2,2)+Sxy(3,3);
l2=Sxy(1,1)*Sxy(2,2)+Sxy(2,2)*Sxy(3,3)+Sxy(3,3)*Sxy(1,1)-Sxy(1,2)*Sxy(1,2)-Sxy(2,3)*Sxy(2,3)-Sxy(1,3)*Sxy(1,3);
l3=Sxy(1,1)*Sxy(2,2)*Sxy(3,3)+2*Sxy(1,2)*Sxy(2,3)*Sxy(1,3)+Sxy(1,1)*Sxy(2,3)*Sxy(2,3)-Sxy(2,2)*Sxy(1,3)*Sxy(1,3)-Sxy(3,3)*Sxy(1,2)*Sxy(1,2);
S=roots([1 -l1 l2 -l3]);
sigmas=sort(S);
Tm=(1/2)*(sigmas(1,1)-sigmas(3,1));
end
%---------END OF CODE---------
Write a MATLAB function file with the function handle [S, Tm] = principal (Sxy) which takes...
Please make function file and answer 9-15. The state of stress at a point is shown on the element. Determine (a) the principal stresses and (b) the maximum in-plane shear stress and average normal stress at the point. Specify the orientation of the element in each case. 60 MPa 30 MPa 45 MPa Prob. 9-15 Formula: + Oy Oy sin 29 cos 20 + Try sin 20 et sin 20 + Tycos 20 What to find using MALLAB Write a...