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
Algorithm for the function e: The algorithm for the function eoption is as shown: Use the menu function to show the 4 choices. Error-check (an error would take place

Example of Interpolation and extrapolation: The MATLAB has a function to do this, known as polyfit. The function polyfit finds the coefficients of the polynomial of the partic

Algorithm for subfunction: The algorithm for subfunction askforn is as shown:  Prompt the user for the positive integer n.  Loop to print an error message and reprom

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

Forward substitution: The Forward substitution (done methodically by first getting a 0 in the a 21 place, and then a 31 , and lastly a 32 ): For the Gauss technique,

Inverse of square matrix: The inverse is, hence the result of multiplying the scalar 1/D by each and every element in the preceding matrix. Note that this is not the matrix A,

I have a 400x2 vel.dat and 20x2 xy.dat file, how can i plot a streamslice graph on matlab with this two files.

Use polyval to evaluate the derivative at xder. This will be the % slope of the tangent line, "a" (general form of a line: y = ax + b). % 4. Calculate the intercept, b, of t

Example to change the line width from the default: For illustration, to change the line width from the default of 0.5 to 1.5: >> set(hl,'LineWidth',1.5) As long as the

Evaluating a string: The function eval is used to compute a string as a function. For illustration, below is the string 'plot(x)'is interpreted to be a call to plot the functi