Cross product of matrix, MATLAB in Engineering

Cross Product:

The cross or outer product a × b of two vectors a and b is defined only whenever both a and b are the vectors in three-dimensional space, that means that they both should have 3 elements. It can be defined as the matrix multiplication of a matrix composed from the elements from a in a specific manner as shown here and in the column vector b.

1189_Cross Product.png

The MATLAB has a built-in function cross to accomplish this.

>> vec1 = [4 2 5 ];

>> vec2 = [3 6 1 ];

>> cross(vec1,vec2)

ans =

-28 11 18

Posted Date: 10/22/2012 2:38:08 AM | Location : United States







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

Write discussion on Cross product of matrix
Your posts are moderated
Related Questions
Example of Gauss-jordan: For a 2×2 system, this would results and for a 3 × 3 system, Note that the resulting diagonal form does not involve the right-most col

function numden: The function numden will return individually the numerator & denominator of a symbolic expression: >> sym(1/3 + 1/2) ans = 5/6 >> [n, d] =

Function cirarea - Anonymous functions: The function handle name is cirarea. The one argument is passed to the input argument radius. The body of the function is an expression

Modular programs: In a modular program, the answer is broken down into modules, and each is executed as a function. The script is usually known as the main program. In orde

Solving 2 × 2 systems of equations: However this may be easy in a MATLAB, in normal finding solutions to the systems of equations is not. The systems which are 2 × 2 are, thou

Dot Product: The dot or inner product of two vectors a and b is written as a • b and is defined as  In another words, this is like matrix multiplication when multiplyi

Appending variables to the Mat-File: Appending to the file adds to what has been saved in a file, and is accomplished by using the -append option. For illustration, supposing

Illustration of Subfunctions: This is an illustration of running this program: >> rectarea Please enter the length: 6 Please enter the width: 3 For a rectan

function imread: The function imread can read an image file, for illustration a JPEG (.jpg) file. The function reads color images into a 3-dimensional matrix. >> myimage1

Symbolic Variables and expressions: The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a sym