From the course: MATLAB Essential Training

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Perform matrix multiplication

Perform matrix multiplication - MATLAB Tutorial

From the course: MATLAB Essential Training

Perform matrix multiplication

- [Instructor] Matrix multiplication is one of the most useful techniques in linear algebra. In this movie, I will show you how to do it in MATLAB. I've created a new blank Command Window, and I can start by defining a couple of vectors that I will use in matrix multiplication. And again, a vector is a special case of a matrix, where I have either one row or one column. So I'll start by defining a row vector, I'll call it v_row equals, and then in square brackets I'll define the terms. So I'll have one then a comma, three, comma, five, comma, seven, and right square bracket to close it and Enter. And there I have my row. And now I will create a column vector. So that would be v_col. And these are just variable names, they're not mandatory. You can call them whatever you like. And within a square brackets, I'll type a two. And then I need to go to a new row because we are creating a column with a single item within each…

Contents