Write a MATLAB function called deflect that computes the deflection of a beam at the various points along the beam as the load is moved from the starting at the left end using a for' loop. The function gets a vector containing various points along the beam measured in inches ('a'), the total length of the beam (in inches) 'L', that we wish to compute the deflection of the beam and returns a vector of the computed deflection. Use the following formulas to do these calculations. (note b- length-a) For distances where the a- b deflection-24000b(312-4b) 48 30,000,000 795.5 For distances where acb: 24000a(312 -4a2) 48 30,000,000 795.5 5. Write the part of a MATLAB script that creates a vector a that ranges from O to 120 inches in increments of 6 inches, a scalar L 120 It then calls the function deflect(question 4) and then prints the report using the layout as shown. Distance Deflection 0.0000 -0.1086 6.0000 -0.1028 12.0000 -0.0964 18.0000 -0.0895 24.0000 -0.0823 30.0000 -0.0747 Write a MATLAB function called deflect that computes the deflection of a beam at the various points along the beam as the load is moved from the starting at the left end using a for' loop. The function gets a vector containing various points along the beam measured in inches ('a'), the total length of the beam (in inches) 'L', that we wish to compute the deflection of the beam and returns a vector of the computed deflection. Use the following formulas to do these calculations. (note b- length-a) For distances where the a- b deflection-24000b(312-4b) 48 30,000,000 795.5 For distances where acb: 24000a(312 -4a2) 48 30,000,000 795.5 5. Write the part of a MATLAB script that creates a vector a that ranges from O to 120 inches in increments of 6 inches, a scalar L 120 It then calls the function deflect(question 4) and then prints the report using the layout as shown. Distance Deflection 0.0000 -0.1086 6.0000 -0.1028 12.0000 -0.0964 18.0000 -0.0895 24.0000 -0.0823 30.0000 -0.0747