Divides two variables. It returns the quotient of x and y. If the denominator is a scalar, the numerator can be any type of variant except bool. Otherwise they must be of the same type and size. In all possible cases, this operation is performed element-wise.
Syntax
x/y
Types
Variable Name | Value Type | Variable Type | ||
---|---|---|---|---|
Arguments: | x | real, complex | scalar, vector, matrix, signal, xy-data | |
y | real, complex | scalar, vector, matrix, signal, xy-data | ||
Result: | z | real, complex | scalar, vector, matrix, signal, xy-data |
Calculator Input
Use the
button to complete the operation.Examples
Divide Vector by Scalar
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL VECTOR |
| [2, 2.5] | |
y | Argument | REAL | 5 | 5 | |
z | Result | REAL VECTOR |
| x/y |
Divide Matrix by Matrix (Same Size)
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL MATRIX |
| [[2,4],[6,8]] | |
y | Argument | REAL MATRIX |
| [[2,2],[2,2]] | |
z | Result | REAL MATRIX |
| x/y |
Divide Signal by Signal (Same Size)
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL SIGNAL | signal([0, 0.5, 1],[2, 4, 6]) | ||
y | Argument | REAL SIGNAL | signal([0, 0.5, 1],[1, 2, 3]) | ||
z | Result | REAL SIGNAL | x/y |
Divide Scalar by Signal
ID | Description | Type | Value | Expression | |
---|---|---|---|---|---|
x | Argument | REAL | 6 | 6 | |
y | Argument | REAL SIGNAL | signal([0, 0.5, 1],[1, 2, 3]) | ||
z | Result | REAL SIGNAL | x/y |