Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB! Please do all please and show everything 1. (25) Write a command to create the following matrix (A) using colon operators; Using a built-in

MATLAB! Please do all please and show everything image text in transcribed
1. (25) Write a command to create the following matrix (A) using colon operators; Using a built-in function rand to generate a random 6 x 3 matrix B, in which the range of each element is 0 to 5. And then write commands to multiply matrix A by B and assign to matrix C. Then sort rows of C based on the second column in a descending order and assign the sorted matrix to D. Finally, retrieve all the elements in the second column of the resultant matrix D, and assign the elements to E 11 9 7 5 3 1 A-1 5 9 13 17 21 2 3 4 5 6 7 2. If the bank interest rate (R) is 15% for a mortgage loan of amount M to buy a house. the fixed monthly payment (mp) that will pay off the loan over N years is given by the formula: mp- 212 1) (20 points) If N-25 and the loan amount is given by a user, write a MATLAB program to calculate the mp and display a sentence like The fixed monthly payment is. 2) (25 points) If N-25 and the loan amount is $54,000, but the interest rate increases by 1% from 15% to 25%, compute how the monthly payment will increase. Use a table with the following titles to show the monthly payment changes with interest rates Rate Monthly payment 3. (30) A sphere of mass mi impinges obliquely on a stationary sphere of mass ma, the direction of the blow making an angle a with the line of motion of the impinging sphere If the coefficient of restitution is e (e-0.2), it can be shown that the impinging sphere is deflected through an angle B such that tan(B) m2(1+e)tan (a m-em2+(mm)tan(a) write a user-defined function to compute the angle B in degrees. (hint: use atan for reverse tangent, for instance: x tan(y), so, y-atan(x))

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

4. How would you deal with the store manager?

Answered: 1 week ago