Question: 1- Write a MATLAB program in editor with the following steps and requirements: a) You program must generate a nxm matrix A which all the
1- Write a MATLAB program in editor with the following steps and requirements:
a) You program must generate a nxm matrix A which all the integer elements are randomly picked. Also, all the numbers must be between 1 and some Maximum value which user specifies that.
b) The user can dynamically pick two numbers and replace them with any specific elements of matrix A.
c) Assign the updated matrix into a variable B.
d) Each time the user run the program, the output must display : - The original matrix A - The specific indices of the elements in matrix A which are getting replaced (e.g. which rows and which columns). - The replacement number - The matrix B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
