Documentation

PS Round

Round input physical signal toward nearest integer

Library

Physical Signals/Nonlinear Operators

Description

The PS Round block rounds the input physical signal toward the nearest integer:

y = round( u )

where

uPhysical signal at the input port
yPhysical signal at the output port

Positive signals with a fractional part of 0.5 round up to the nearest positive integer. Negative signals with a fractional part of -0.5 round down to the nearest negative integer.

Both the input and the output are physical signals.

Ports

The block has one physical signal input port and one physical signal output port.

Introduced in R2012b

Was this topic helpful?