Your Perfectย Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Matlab homework

Matlab homework

EML 3035 โ€“ Homework 2 Due: 4/24 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

๐‘‰ = #

๐‘ƒ๐‘ 6๐ธ๐ผ๐ฟ

[(โˆ’๐ฟ- + ๐‘-)๐‘ฅ + ๐‘ฅ1], 0 < ๐‘ฅ < ๐‘Ž

๐‘ƒ๐‘ 6๐ธ๐ผ๐ฟ 7

(โˆ’๐ฟ- + ๐‘-)๐‘ฅ + ๐‘ฅ1 โˆ’ ๐ฟ ๐‘ (๐‘ฅ โˆ’ ๐‘Ž)

18 , ๐‘Ž < ๐‘ฅ < ๐‘

where, E is the beamโ€™s Youngโ€™s Modulus and I is the moment of inertia.

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

P

x L

a b

Problem 2 (5 points) 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. For example:

๐ด = ; 2 โˆ’1 4 3

0 0 โˆ’3 0

0 5 0 0

โˆ’1 8 4 3

B

A is a tridiagonal matrix. The input parameter for your function will be a matrix. Use loops and if statements to check if the matrix is tridiagonal or not. When I run your program it should display a sentence stating whether the matrix is tridiagonal or not. Call the function tri_check_yourlastname. Test your program with these two matrices: a)

; 2 โˆ’1 4 3

0 0 โˆ’3 0

0 5 0 0

โˆ’1 8 4 3

B

b)

; 2 โˆ’1 4 3

1 0 โˆ’3 0

0 5 6 0

โˆ’1 8 4 3

B

Blog ArchiveCopyright ยฉ 2019 HomeworkMarket.com Read

Order Solution Now

Our Service Charter

1.ย Professional & Expert Writers:ย Writers Heroย only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2.ย Top Quality Papers:ย Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3.ย Plagiarism-Free Papers:ย All papers provided byย Writers Heroย are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4.ย Timely Delivery:ย Time wasted is equivalent to a failed dedication and commitment. Writers Hero is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5.ย Affordable Prices:ย Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6.ย 24/7 Customer Support:ย Atย Writers hero, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.