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 - Mathematica Tutorial
From the course: Mathematica 11 Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Define vectors and matrices4m 22s
-
(Locked)
Add, subtract, and multiply matrices9m 9s
-
(Locked)
Generate useful matrices3m 28s
-
(Locked)
Transpose and invert matrices6m 16s
-
(Locked)
Perform element-wise calculations3m 58s
-
(Locked)
Refer to and edit matrix items4m 54s
-
(Locked)
Convert a matrix to a list2m 50s
-
(Locked)
-
-
-
-