Dot Products Of Matrices And Vectors In MatLab(Illustrated Expression)
Dot product is a very common calculation technique in vector mechanics. In mechanical engineering and classical mechanics, vector mechanics is very prominent tool to calculate various kinds of situations. In this article, we will show you how to calculate the dot products of matrices and vectors with very basic examples below.
How To Use ‘dot()’ Command In MatLab?
At above example, we created two of vectors has same dimensions that are called ‘a’ and ‘b’ respectively as shown by red arrow above. Then we created matrices that has same 3×3 dimensions which are ‘c’ and ‘d’ as shown by green arrow. We calculated the dot products of these matrices and vectors each other as in green box. This is simply done by typing the variables inside the dot() command pharantheses respectively.
If you take a look at the first answer as shown by blue arrow above, the answer is an individual integer. In which the same indexed elements are multiplied and added.
In second answer is an vector includes three elements. Same calculation for vectors done for each columns of matrices individually. And the whole results of each columns are typed in a vector elements respectively.
The use of dot() command in Matlab is simple like above. Leave your comments and questions about dot() command in Matlab below!