# Matlab Homework

Matlab Homework

problem 1 – 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

Write a function that checks whether a matrix is tridiagonal or not. A tridiagonal matrix is such that has nonzero elements on its main diagonal, the first diagonal below this and the first diagonal above the main. Outside of this, all other elements are zeros.

## "96% of our customers have reported a 90% and above score. You might want to place an order with us."

##### Affordable prices

You might be focused on looking for a cheap essay writing service instead of searching for the perfect combination of quality and affordable rates. You need to be aware that a cheap essay does not mean a good essay, as qualified authors estimate their knowledge realistically. At the same time, it is all about balance. We are proud to offer rates among the best on the market and believe every student must have access to effective writing assistance for a cost that he or she finds affordable.