Question: MATLAB ONLY MATLAB ONLY NO WHILE NO FPRINT 8. Matrix Math Example Il Filename: matrixCheck.m A user wants to create a program called matrixCheck.m that
MATLAB ONLY MATLAB ONLY NO WHILE NO FPRINT 

8. Matrix Math Example Il Filename: matrixCheck.m A user wants to create a program called matrixCheck.m that can be used to decide if two matrices can be added and multiplied based on their sizes. The program should: Ask the user for the number of rows and columns in matrix A (the first matrix) Ask the user for the number of rows and columns in matrix B (the second matrix) Create A and B by making the appropriate sized arrays using random integers between 1 - 100. Check to see if A and B can be added (C = A + B) and report back to the user with one of the following statements in the Command Window: A and B cannot be added because they do not meet the row and column requirements. or A and B can be added and the new matrix will have X rows and Y columns. o X and Y should have appropriate values based on the inputs from the user. 0 If A and B can be added together, calculate C and report back the C matrix to the user in the Command Window Check to see if A and B can be multiplied (D = A*B) and report back to the user with one of the following statements in the Command Window: A and B cannot be multiplied because they do not meet the row and column requirements. or A and B can be multiplied and the new matrix will have U rows and V columns. o U and V should have appropriate values based on the inputs from the user. o If A and B can be multiplied, calculate D and report back the D matrix to the user in the Command Window
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
