<< odd Other rot90 >>

Time Frequency Toolbox >> Time Frequency Toolbox > Other > rem

rem

Return the remainder of the division x/y

Calling Sequence

r = rem(x,y)

Parameters

x :

a real or integer type array.

y :

a real o integer type array.

Description

Return the remainder of the division x/y, more precisely r = x - y .* fix (x ./ y);

x or y may be scalars or arrays. If both are arrays they must have the same sizes

x and y may have different types, the results type if the type of x.

Examples

rem(1:5,3)
rem(1:5,3*ones(1,5))
r=rem(uint32(1:5),2)
r=rem(uint32(1:5),2)
typeof(r)

See Also

modulo pmodulo

Report an issue
<< odd Other rot90 >>