8) Provide MATLAB code for the following problems. Include MATLAB comments in your code to explain its operation. a) Wri
Posted: Fri May 27, 2022 6:50 am
8) Provide MATLAB code for the following problems. Include MATLAB comments in your code to explain its operation. a) Write a MATLAB function which takes as input any nxm matrix of numbers, appends a new row of zeros and a new column of zeros to it, and returns the resulting (n+1)x(m+1) matrix as the output. Test the function using a short MATLAB script which calls the function. [8 Marks] b) Find the value(s) of the real variable that satisfy the equation In x= x² - 2. Check the correctness of your solution after finding it. [9 Marks] [Total 17 Marks]