  Anonymous

### Question Description

Hello,

I would like from you to do the homework which is in the file below.

You will create three .m files. One main file and two function files (Problems 1 and 2).

Note : Do this in your own, the prof has a software which checks if my code is been taken from the web or from any other student. so please do this in your own and do not share the code.

Thank you

### Unformatted Attachment Preview

EML 3035 – Homework 3 Due: 4/20/20 by midnight Problem 1 (5 points) A simply supported beam is loaded as shown in the figure below. The vertical deflection of the beam, V, varies along the length of the beam and is given by 𝑃𝑏 [(−𝐿- + 𝑏- )𝑥 + 𝑥 1 ], 0 ≤ 𝑥 ≤ 𝑎 6𝐸𝐼𝐿 𝑉=# 𝑃𝑏 𝐿 7(−𝐿- + 𝑏- )𝑥 + 𝑥 1 − (𝑥 − 𝑎)1 8 , 𝑎 < 𝑥 ≤ 𝐿 6𝐸𝐼𝐿 𝑏 where, E is the beam’s Young’s Modulus and I is the moment of inertia. P x L a b Write a function that outputs the vertical deflection of the beam at a point x of interest. Call the function deflection_yourlastname. The function inputs would be: 1) distance from the left end to the point of interest, x 2) length of the beam L 3) load, P 4) location where the load P is applied, a 5) Young’s modulus of the beam, E 6) Moment of inertia, I The output of the function will be the beam deflection, V. Display this output with an fprintf. Run the file for the following input sets: a) x=2.5, L=5, a=3, E=30e6, I = 0.0256, P=30 b) x=4.05, L=5, a=3, E=30e6, I = 0.0256, P=30 Problem 2 (5 points) Write a function that checks whether a matrix is diagonal or not. A diagonal matrix is such that has nonzero elements on its main diagonal. Outside of this, all other elements are zeros. For example: A is a diagonal matrix. 2 𝐴 = <0 0 0 0 0 0 3 0 0@ 0 −1 0 0 0 3 The input parameter for your function will be a matrix. The output of your function should be a variable that will tell us if yes or no. For instance, 1 means yes, 0 means no. Use loop(s) and if statement(s) to check if the matrix is diagonal or not. When I run your program it should display a sentence stating whether the matrix is diagonal or not. Call the function tri_check_yourlastname. Test your program with these two matrices: a) b) 2 <0 0 0 0 0 0 3 0 0@ 0 −1 0 0 0 3 2 −1 <4 3 0 5 6 0 1 −3 −1 4 0 0@ 8 3 ... Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service. This question has not been answered.

Create a free account to get help with this and any other question! Brown University

1271 Tutors California Institute of Technology

2131 Tutors Carnegie Mellon University

982 Tutors Columbia University

1256 Tutors Dartmouth University

2113 Tutors Emory University

2279 Tutors Harvard University

599 Tutors Massachusetts Institute of Technology

2319 Tutors New York University

1645 Tutors Notre Dam University

1911 Tutors Oklahoma University

2122 Tutors Pennsylvania State University

932 Tutors Princeton University

1211 Tutors Stanford University

983 Tutors University of California

1282 Tutors Oxford University

123 Tutors Yale University

2325 Tutors