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
Anonymous Functions: The anonymous function is a very easy, one-line function. The benefit of an anonymous function is that it does not have to be stored in an M-file. This ca

Technique to creating this structure: An alternative technique of creating this structure, that is not as efficient, includes using the dot operator to refer to fields in the

Illustration of anonymous functions: Dissimilar functions stored in the M-files, when no argument is passed to an anonymous function, the parentheses should still be in the fu

Displaying expressions: The good-looking function will show such expressions by using exponents; for illustration, >> b = sym('x^2') b = x^2 >> pretty(b)

Algorithm for appex subfunction: The algorithm for appex subfunction is as shown:  Receives x & n as the input arguments.  Initializes a variable for running sum of t

Function issorted - set operations: The function issorted will return 1 for logical true when the argument is sorted in ascending order (minimum to maximum), or 0 for false wh

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

Sorting Vectors of structures: Whenever working with vector of structures, it is very common to sort based on a particular field within the structures. For illustration, recal

Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F

Illustration of gauss-jordan: Here's an illustration of performing such substitutions by using MATLAB >> a = [1 3 0; 2 1 3; 4 2 3] a = 1 3 0 2 1 3 4 2