Question: Using matlab LAB part I Write a function called sum mat that sums two m x n matrices using nested loops and returns the result

Using matlab  Using matlab LAB part I Write a function called sum mat

LAB part I Write a function called sum mat that sums two m x n matrices using nested loops and returns the result in a new matrix. Use nested for loops to add the matrices element by element. That is, do not simply program A B Your function should perform an error check to make sure both matrices have the same number of rows and columns. LAB part II Write a function called inv 2x2 that finds the inverse of a 2 x 2 matrix and returns the result. Use the equation for inverting a 2 x 2 matrix that we discussed in lecture. Your function should perform an error check to make sure the matrix is 2 x 2 and that it is non- singular GENERAL REQUIREMENTS Documentation for both functions should begin following the first line and meet the documentation requirements previously provided. Your function documentation must support the use of Matlab's he lp function You will need to write programs to call your functions for testing purposes. However, I will use my own programs to test your functions. So you need to only submit your two completed functions via D2L

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!