Repeat Prob. 51 for a bar of AISI 1030 hot-rolled steel and:(a) sx 5 25 kpsi, sy 5 15 kpsi(b) sx 5 15 kpsi, sy 5 215 kpsi(c) sx 5 20 kpsi, txy 5 210 kpsi(d) sx 5 212 kpsi, sy 5 15 kpsi, txy 5 29 kpsi(e) sx 5 224 kpsi, sy 5 224 kpsi, txy 5 215 kpsi
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