Question: USING MATLAB 1. Ask the user to enter a number N between 2 and 10. Generate an NxN matrix A of random integers between 1
USING MATLAB
1. Ask the user to enter a number N between 2 and 10. Generate an NxN matrix A of random integers between 1 and 100. a) Create a row vector x from all elements of A which are even. Replace these elements in A with -1. [hint: you might wish to use the "rem" function] b) Create a column vector y from all elements in the original A matrix which are greater than 95. Replace these elements in A with -2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
