Question: Please use the second picture to answer the first pictures question by posting the matlab code. Thank you a) Modify the function file macaulay(x,a,n) that
a) Modify the function file macaulay(x,a,n) that x can be a domain vector by adding a for loop in the function. Try following statements: x=linspace(0,10); y=macaulay(x,5,2); plot(x,y) b) A simple supported beam is as shown in the figure. The displacement along the beam can be expressed by the equation: 20 kips/ft Develop a script that will create a plot of displacement (dashed line) verses distance along the beam, x. Note that x = 0 at the left end of the beam. 150 kip-ft 15kips a) Modify the function file macaulay(x,a,n) that x can be a domain vector by adding a for loop in the function. Try following statements: x=linspace(0,10); y=macaulay(x,5,2); plot(x,y) b) A simple supported beam is as shown in the figure. The displacement along the beam can be expressed by the equation: 20 kips/ft Develop a script that will create a plot of displacement (dashed line) verses distance along the beam, x. Note that x = 0 at the left end of the beam. 150 kip-ft 15kips
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
