Question: Create matrices and vectors in MATLAB. Write a script to ask the user for the number of rows and the number of columns (positive non

Create matrices and vectors in MATLAB.
Write a script to ask the user for the number of rows and the number of columns (positive non zero integers). Your program must then generate a matrix with the size specified by the user. Let's call it mat. The elements of mat must be random integer numbers between -10 and 60. Your script then must do the following and display the result with appropriate messages 1) Display the number of rows and columns and the total number of elements in the matrix 2) Display the maximum and the minimum values in the matrix. In the next sage 3) Add another row of random numbers between 60 and 100 to mat. Your script must display the new row and the new matrix with appropriate messages. Let's call this 4) Write a command to extract the first and the last rows of matrix mat2, and display IMPORTANT: Your program must display informative messages for both input inquiry new matrix mat2. them with an appropriate message. and output display. Vague messages and bad display of results will result in losing points
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
