Simulink Reference Previous page   Next Page

Arithmetic Operators in Embedded MATLAB Functions

Embedded MATLAB functions support the following MATLAB arithmetic operations for matrix operands (maximum two-dimensional) of type double or single. See Arithmetic Operators + - * / \ ^ ' in MATLAB online help for detailed descriptions of each operation and any requirements for the data types of the operands.

Operator
Description
+
Addition
-
Subtraction
*
Multiplication
.*
Elementwise multiplication
./
Elementwise division
.^
Elementwise raising to a scalar power
[]
Concatenation of matrices
'
Complex conjugate transpose
.'
Transpose
(r, c)
Matrix indexing, where r and c are vectors of row and column indices, respectively


Previous page  Control Flow Statements in Embedded MATLAB Functions Relational Operators in Embedded MATLAB Functions Next page

© 1994-2005 The MathWorks, Inc.