From the course: Mathematica 14 Essential Training

Unlock this course with a free trial

Join today to access over 26,700 courses taught by industry experts.

Define vectors and matrices

Define vectors and matrices

“

If you want to do any machine learning analysis inside of Mathematica 14, you will need to use matrices and vectors. And in this movie, I will define what they are and show you how to create them in Mathematica. I'll start with vectors. A vector is a single row or a single column. You can have a row vector, which is laid out horizontally as a single row, or a column vector, which is, as you see, vertical and has a single column of values. A matrix, on the other hand, has a combination of rows and columns. And yes, technically you can have a one by one matrix, but typically we don't refer to it that way. It would just be a single unit vector. When you describe a matrix, you give the number of rows first and then the number of columns. So here, I have a matrix with two rows and three columns. So, it is a two by three matrix. With that quick introduction in mind, let's switch over to Mathematica and get to work creating and defining matrices and vectors there. I'm in a blank Mathematica…

Contents