operators-arithmetic
Programming
Arithmetic operations. + - * / ^ work on scalars and matrices (matrix multiplication for *). Element-wise operators: .* (element multiply), ./ (element divide), .^ (element power). Use element-wise operators when you want to operate on corresponding elements of arrays.
Syntax
a + b
a - b
a * b
a / b
a ^ b
a .* b
a ./ b
a .^ b
Examples
See Also
Try SimLab — Free MATLAB® Alternative
466 functions. Runs in your browser. No install.
Open SimLab