Question: MATLAB Question 3 must use a for loop Q5, Use nested for loops to modify the following array A and save it into array B
Q5, Use nested for loops to modify the following array A and save it into array B so that: The main diagonal element values will be changed to 1. The elements below the main diagonal will be set to 0 The remining elements will stay the same as in the original array A. 3 6 1 1 2 1 2 3 1 Output 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
