Question

Write a MATLAB function file with the function handle [S, Tm] = principal (Sxy) which takes a matrix input Sxy in the form xx

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For a - Erry byy てりス stren tanson: Say - Gre tu tez 7 blay by Zuz | СТ, Сух ба are given by the moon of the eah. - 6,62 - 126

%-------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---------

Add a comment
Know the answer?
Add Answer to:
Write a MATLAB function file with the function handle [S, Tm] = principal (Sxy) which takes...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Please make function file and answer 9-15. The state of stress at a point is shown...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT