15 9 8 2 6. 10 If A= 3 7 4 4 , then the correct MATLAB Code to replace the values located under the main diagonal of Matrix A by values of one is: 1. for r=1:4 for c=1:4 if r-c A(r, c)=1; 2. for r-2:4...


15<br>9 8<br>2<br>6.<br>10<br>If A=<br>3<br>7<br>4<br>4<br>, then the correct MATLAB Code to replace the values located<br>under the main diagonal of Matrix A by values of one is:<br>1.<br>for r=1:4<br>for c=1:4<br>if r-c<br>A(r, c)=1;<br>2. for r-2:4<br>3.<br>4. for r-2:4<br>for r-1:4<br>for c 2:4<br>for c 1:4<br>for c=2:4<br>if r>c<br>A (r, c)=1;<br>else<br>if r<c<br>A(r, c)-1;<br>else<br>if r<c<br>A (r, c)=1;<br>else<br>else<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>5.<br>6.<br>for r1:3<br>for r-1:4<br>for c1:4<br>7. for r-1:4<br>for c=1:4<br>8. Not all above.<br>for c=1:3<br>if r>c<br>if r>c<br>if ric<5<br>A(r, c) 13;<br>A (r, c)-1;<br>A(r, c)=1;<br>else<br>else<br>else<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>end<br>

Extracted text: 15 9 8 2 6. 10 If A= 3 7 4 4 , then the correct MATLAB Code to replace the values located under the main diagonal of Matrix A by values of one is: 1. for r=1:4 for c=1:4 if r-c A(r, c)=1; 2. for r-2:4 3. 4. for r-2:4 for r-1:4 for c 2:4 for c 1:4 for c=2:4 if r>c A (r, c)=1; else if rc if r>c if ric<5 a(r,="" c)="" 13;="" a="" (r,="" c)-1;="" a(r,="" c)="1;" else="" else="" else="" end="" end="" end="" end="" end="" end="" end="" end="">

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here