rdivide,./
Right array division
Syntax
Description
x =
divides each element ofA
./B
A
by the corresponding element ofB
. The sizes ofA
andB
must be the same or becompatible.
If the sizes ofA
andB
are compatible, then the two arrays implicitly expand to match each other. For example, if one ofA
orB
is a scalar, then the scalar is combined with each element of the other array. Also, vectors with different orientations (one row vector and one column vector) implicitly expand to form a matrix.
Examples
Input Arguments
Tips
The element-wise operators
./
and.\
are related to each other by the equationA./B = B.\A
.When dividing integers, use
idivide
for more rounding options.MATLAB®does not support complex integer division.