Warping Factor In ANSYS® Mesh Structures(Illustrated Expression)
Scalar or vectorial products of various vectors are very important in vector mechanics. Lots of physical situations are explained with vector mechanics. So the difference between scalar and vectorial products is very important to solve a vector mechanics problem correctly. In this article on Mechanical Base, we will show you how to calculate vectorial products and scalar products in Matlab®.
>> a = [1 2 3] * [4 5 6]' b = [1 2 3]'*[4 5 6] a = 32 b = 4 5 6 8 10 12 12 15 18 >>
Take a look at the calculation ‘a’ that we multiplied a 3×1 matrix and 1×3 matrix as shown above, then the answer is a singular value as shown red arrow. This means that the multiplication of a row vector and column vector is scalar.
Also in the ‘b’ calculation as shown, we multiplied a column vector with a row vector in Matlab®. This calculation leads to an answer that has a matrix as shown above. This means also the multiplication of column vector and row vector is a vectorial product.
When you add ‘ to the end of a vector as in the above examples, you will have transpose of them in Matlab®.
If you are aware of this fact, you will not get incorrect solutions to your vector mechanics problems from Matlab®.
Do not forget to leave your comments and questions below about the scalar and vectorial products in Matlab® below.
If you want further coding examples about ‘the scalar and vectorial products in Matlab®, inform us in the comments.
This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®
Your precious feedbacks are very important to us.