Dot product of matrix, MATLAB in Engineering

Dot Product:

The dot or inner product of two vectors a and b is written as a • b and is defined as 

793_dot product.png

In another words, this is like matrix multiplication when multiplying a row vector a by a column vector b; and the result is a scalar. This can be accomplished by using the * operator and transposing the second vector, or by using the dot function in a MATLAB:

>> vec1 = [4 2 5 1];

>> vec2 = [3 6 1 2];

>> vec1*vec2'

ans =

        31

>> dot(vec1,vec2)

ans =

        31

Posted Date: 10/22/2012 2:36:01 AM | Location : United States







Related Discussions:- Dot product of matrix, Assignment Help, Ask Question on Dot product of matrix, Get Answer, Expert's Help, Dot product of matrix Discussions

Write discussion on Dot product of matrix
Your posts are moderated
Related Questions
Illustration of if - else statement: The one application of an if-else statement is to check for errors in the inputs to a script. For illustration, a former script prompted t

Function call: In the function call, not any arguments are passed so there are no input arguments in the function header. The function returns an output argument, therefore th

For Loops which do not use an iterator Variable in the action: In all the illustrations that we seen so far, the value of the loop variable has been used in same way in the ac

FOR Loop: The for loop, or the for statement, is used whenever it is essential to repeat statement(s) in the script or function, and whenever it is known ahead of time how man

Example of image processing: The other illustration generates a 5 × 5 matrix of arbitrary integers in the range from 1 to the number of colors; the resultant image is as shown

I have a vector of X, one for Y , one for x-direction velocity U and one for y-direction velocity V. they are at same size. How can I plot streamline of that flow? I follow all exa

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente

Matrix definitions: As we know the matrix can be thought of as a table of values in which there are both rows and columns. The most common form of a matrix A (that is sometime

Referring to and Showing Cell Array Elements and Attributes: Just as with the other vectors, we can refer to individual elements of the cell arrays. The only difference is tha

Binary Search: The binary search supposes that the vector has been sorted first. The algorithm is just similar to the way it works whenever looking for a name in a phone direc