Open a new script (.m file) and program the following proble…

Open a new script (.m file) and program the following problem. Built-in functions not seen in class such as sum, find, max, etc not allowed. Given an nxn matrix and a 1x(n-1) vector, write a program that calls a function to do the following: a) Replace the under-diagonal elements highlighted in red with the elements from the vector as shown below. b) Use the matrix last row to find the following parameter R. where xi represents the i-th element of the last row of the matrix. Name the function Rep_yourlastname. The inputs will be the given matrix and vector and the outputs will be the new matrix from a) and parameter R. NOTE: Make sure the program works for any nxn matrix in conjunction with a 1x(n-1) vector, with n being a positive integer greater than 2.

A landlord is going through the process to evict a tenant fo…

A landlord is going through the process to evict a tenant for non payment of rent. However, the court has not yet made a decision and the tenant is still in possession. The landlord has gone through this a thousand times and knows that the eviction will go through. So, one day when the tenant is out shopping, the landlord removes the old locks and puts a new lock on. A court would likely see this as: