A and B must have the same size, unless one of them is a scalar.īackslash or matrix left division. A./B is the matrix with elements A(i,j)/B(i,j). A and B must have the same size, unless one of them is a scalar. A.* B is the element-by-element product of the arrays A and B. A scalar can multiply a matrix of any size.Īrray multiplication. For nonscalar A and B, the number of columns of A must equal the number of rows of B.C = A* B is the linear algebraic product of the matrices A and B. A scalar can be subtracted from a matrix of any size. A and B must have the same size, unless one is a scalar. A scalar can be added to a matrix of any size. However, since the matrix and array operations are the same for addition and subtraction, the character pairs. The period character (.) distinguishes the array operations from the matrix operations. Array arithmetic operations are carried out element-by-element, and can be used with multidimensional arrays. Matrix arithmetic operations are defined by the rules of linear algebra. MATLAB has two different types of arithmetic operations. Arithmetic Operators + - * / \ ^ ' (MATLAB Functions) MATLAB Function Reference
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |