Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need help with problem 2 & 3 not sure how to do this in matlab, please help Q#2:

ID: 1765531 • Letter: N

Question

Need help with problem 2 & 3 not sure how to do this in matlab, please help

Q#2: in Germany, annual professional fees are set by law for engineers, doctors and lawyers,in Frankfurt, the total fees collected from 23 doctors 18lawyers and 12 engineers were $76.5M. In Munich, 18dost 9 lawyers, and 20 engineers were charged $55.0M and in Berlin 25 were charged $85.5M. Using Matlab command to determine the annual fees charged by each doctor lawyers and engineers. 20 lawyers, and 16 engineers matlab command operation to compute a 3x3 matrix D that contains the specific amount Q#3: Use charged by each profession in each city (refer to problem in Q#2). As an example, D (1,1) element will represent the total fees charged by Doctors in Frankfrut City, D(2,2) will be the total fee charged by Doctor in Munich and so on

Explanation / Answer

This is basically a problem of solving a system of linear equatiins with three unknows

Let the fee for doctor be x,lawyer be y and engineer be z

In Frankfurt, 23x+18y+12z=76.5(million dollars)

In Munich, 18x+9y+20z=55(milliom dollars)

In Berlin, 25x+20y+16z=85.5(million dollars)

Therefore, the system.of equations is

23x+18y+12z=76.5

18x+9y+20z=55

25x+20y+16z=85.5

The above three equations can be solved by defining two matrices A and B,wherein matrix A is 3x3 and has all the coefficients of the system of equations and matrix B is 3x1 containing the numbers to the right hand side of equations.

The required numbers x,y and z can be calculated by multiplying the inverse of matrix A with matrix B

Inverse(A)*B

This can be easily done in MATLAB. I hope this helps

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote