Divide

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 NameValue TypeVariable Type
Arguments:xreal, complexscalar, vector, matrix, signal, xy-data
yreal, complexscalar, vector, matrix, signal, xy-data
Result: zreal, complex scalar, vector, matrix, signal, xy-data
Calculator Input

Use the ÷ button to complete the operation.

Examples

Divide Vector by Scalar

IDDescriptionTypeValueExpression
xArgumentREAL VECTOR

[2, 2.5]
yArgumentREAL55
z Result REAL VECTOR

x/y

Divide Matrix by Matrix (Same Size)

IDDescriptionTypeValueExpression
xArgumentREAL MATRIX

[[2,4],[6,8]]
yArgumentREAL MATRIX

[[2,2],[2,2]]
zResult REAL MATRIX

x/y

Divide Signal by Signal (Same Size)

IDDescriptionTypeValueExpression
xArgumentREAL SIGNAL   signal([0, 0.5, 1],[2, 4, 6])
yArgumentREAL SIGNAL   signal([0, 0.5, 1],[1, 2, 3])
zResult REAL SIGNAL   x/y

Divide Scalar by Signal

IDDescriptionTypeValueExpression
xArgumentREAL66
yArgumentREAL SIGNAL   signal([0, 0.5, 1],[1, 2, 3])
zResult REAL SIGNAL   x/y