Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Assign the scalar value 100 to the (nonexistent) 6^th row and 6^th column of mat

ID: 2079278 • Letter: A

Question

Assign the scalar value 100 to the (nonexistent) 6^th row and 6^th column of matrix matrix2 thereby creating a larger matrix than the original. (q) Create a variable named matrix5 and assign to it a matrix formed by appending matrix matrix2 to the top of itself. (r) Delete the elements contained in columns 3 through 5 from matrix matrix4 thereby reducing the number of columns of matrix matrix4 by 3. Utilize the MATIAB colon (:) operator. (s) Delete the elements contained in rows 2 and 12 from matrix matrix5 thereby reducing the number of rows of matrix matrix5 by 2. Utilize the MATIAB colon (:) operator. (t) Deactivate the diary contained in the file lastname_LAB2_TASK2_DIARY.txt.

Explanation / Answer

You can make the matrix by writing below code

matrix2(6,6) = 100

Please note in the above code all the values in Row and column 6 becomes 0 except for matrix2(6,6)