A cold-drawn AISI 1015 steel tube is 300 mm OD by 200 mm ID and is to be subjected toan external pressure caused by a shrink fit. Using the distortion-energy theory, determine themaximum pressure that would cause the material of the tube to yield.
Anthony Lovill BE1500 HW #9 December 10, 2016 %This script uses the file gem_test1 and calculates the amount each line of %words adds up to. Then it analyzes which lines share the same value. clear format=[2 3 4 6 5 6 8 3 4 4 2 2 3 3 5 4 6 4 6 4 2 3 4 4 6 3 4 5 3 4 2 8 5 6 4 3 3 3 4 3 3 2 2 4 4 5 5 6 3 5 3 3 3 6 5 5 5 3 3 3 3 5 5 5 5 6 6 3 3 6 5 5 3 5 3 6 5 5 5 6]; f=length(format); i=1; j=1; num=0; fprintf('Line Value\n'); %The following finds the value of each line of text while i<=f newNum=0; if i==1 gemT = textread('gem_test1.txt','%s',format(i)); else k=1; while k<=i newNum=newNum+format(k); k=k+1; end gemT = textread('gem_test1.txt','%s',newNum); end gemT=upper(gemT