Complete this code section with a for loop that traverses the array X and does two things: it changes any value 4 to a zero; and it adds one to any other number. Use the codeframework provided and...

i need the answer quicklyComplete this code section with a for loop that traverses the array X<br>and does two things: it changes any value 4 to a zero; and it adds<br>one to any other number.<br>Use the codeframework provided and fills in the blanks. Do not change<br>the code provided.<br>For example, after the script the matrix shown should be<br>0 0 35 8 9 -32 7 0 10 0 41<br>= [44 34 7 8 -33 6 4 9 4 40]<br>for<br>if<br>else<br>Matlab<br>end<br>end<br>

Extracted text: Complete this code section with a for loop that traverses the array X and does two things: it changes any value 4 to a zero; and it adds one to any other number. Use the codeframework provided and fills in the blanks. Do not change the code provided. For example, after the script the matrix shown should be 0 0 35 8 9 -32 7 0 10 0 41 = [44 34 7 8 -33 6 4 9 4 40] for if else Matlab end end

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here