From the course: Mathematica 11 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Transpose and invert matrices

Transpose and invert matrices - Mathematica Tutorial

From the course: Mathematica 11 Essential Training

Start my 1-month free trial

Transpose and invert matrices

- [Voiceover] When you use Mathematica for machine-learning tasks, you will often need to transpose matrices, that is, change the position of values within a matrix according to a rule and then also find the inverse of a matrix. In this movie, I will show you how to perform both those tasks. To show you visually what transposing a matrix looks like, let me bring up a couple of matrices. My original has two rows and three columns with the numbers one, two, three, four, five, and six. The transposition of this matrix, which we will call matrix A prime, consists of three rows and two columns, and you note that all of the values, except for the first and last, have changed position. For example, let's take a look at the first value on row two in original matrix A. It's the number four. So that is in row two, column one. When we transpose it, we switch the row and column designation, so it goes to row one, column two instead of row two, column one. As another example, take a look at the…

Contents