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

ECE-222 Fall 2017 Homework 11 (100 Points) 1. Many useful calculations performed

ID: 2250209 • Letter: E

Question

ECE-222 Fall 2017 Homework 11 (100 Points) 1. Many useful calculations performed on matrices require for the matrix to be transposed. An example of a 3x3 matrix transpose is shown below Notice the rows of the original matrix become the columns of the transposed matrix. L.e. the contents of row 0 becomes col 0 in the transposed matrix, row 1 to col 1, etc. Write a program to transpose a 3x3 matrix The initial contents of the matrix can be fixed or random depending on the programmers choice The transposed matrix can be a separate matrix from the original Print the matrix before and after the transpose operation (See Figure 4) ress any Figure 3 Example of Transpose

Explanation / Answer

Below is the code to find the transpose of a matrix: