Matrix operations, MATLAB in Engineering

Matrix operations:

There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes are termed to as array operations. These involve addition and subtraction.

The Matrix addition means adding the two matrices term by term, that means they should be of the similar size. In mathematical terms, this is written cij =   aij +  bij.

1809_Matrix operations.png

Similar to the matrix addition, matrix subtraction means to subtract term by term, therefore in mathematical terms cij = aij - bij. This would also be accomplished by using a nested for loop in many languages, or by using the - operator in a MATLAB.

The Scalar multiplication means to multiply each and every element by a scalar number

 

865_Matrix operations1.png

This would also be accomplished by using a nested for loop in many languages, or by using the * operator in a MATLAB.

Posted Date: 10/22/2012 2:31:19 AM | Location : United States







Related Discussions:- Matrix operations, Assignment Help, Ask Question on Matrix operations, Get Answer, Expert's Help, Matrix operations Discussions

Write discussion on Matrix operations
Your posts are moderated
Related Questions
Replacing, Finding, and separating strings: There are numerous functions which find and replace the strings, or parts of strings, within the other strings and functions which

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

Example of Menu driven modular program: As an illustration of such a menu-driven program, we will write a program to discover the constant e. The constant e, known as the n

Illustration of Matrix solutions: For illustration, consider the three equations below with 3unknowns x 1 ,x 2 , and x 3 : We can write this in the form Ax = b here A

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

Displaying the cell arrays: There are several techniques of displaying the cell arrays. The celldisp function shows all elements of the cell array:   >> celldisp(cellro

Function fieldnames - structure functions: The function fieldnames will return the names of the fields which are contained in the structure variable. >> pack_fields = fiel

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

Example of modular program: In a modular program, there would be one main script which calls three separate functions to complete these tasks: A function to prompt an us

Expanding a function: The expand function will multiply out terms, and factor will do the opposite: >> expand((x+2)*(x-1)) ans = x^2 x-2 >> factor(ans)