Question: roblem 1: (5 Points) rite a function with the header: function [A Transp, errFlag] myMatrixChecker (A) that transposes a square matrix A. If A is

 roblem 1: (5 Points) rite a function with the header: function

roblem 1: (5 Points) rite a function with the header: function [A Transp, errFlag] myMatrixChecker (A) that transposes a square matrix A. If A is not square, myMatrixChecker should return -1 for errFlag and A Transp should be a matrix of zeros of the same size as A. The function should also write a message to the screen telling the user that the matrix is not square. If A is square. errFlag should be 0 and A Transp should be the transpose of A. No message is reported. >> mat1 3*ones (3,7) matl >>[matl T, flag] myMatrixChecker (matl) Matrix is not square , mati T lag xrandi (42,5,5) 20 3 roblem 1: (5 Points) rite a function with the header: function [A Transp, errFlag] myMatrixChecker (A) that transposes a square matrix A. If A is not square, myMatrixChecker should return -1 for errFlag and A Transp should be a matrix of zeros of the same size as A. The function should also write a message to the screen telling the user that the matrix is not square. If A is square. errFlag should be 0 and A Transp should be the transpose of A. No message is reported. >> mat1 3*ones (3,7) matl >>[matl T, flag] myMatrixChecker (matl) Matrix is not square , mati T lag xrandi (42,5,5) 20 3

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!