Main Content

PS Floor

Output the largest integer smaller than or equal to input physical signal

  • PS Floor block

Libraries:
Simscape / Foundation Library / Physical Signals / Nonlinear Operators

Description

The PS Floor block rounds the input physical signal toward negative infinity, that is, to the nearest integer smaller than or equal to the input value:

O=floor(I)

where

IPhysical signal at the input port
OPhysical signal at the output port

Both the input and the output are physical signals. Untyped physical ports facilitate the signal size propagation. However, arguments passed to rounding functions (such as floor) must be dimensionless. Therefore, the input signal must have the unit of 1 (unitless), and the output signal is also unitless.

Ports

Input

expand all

Input physical signal. Arguments passed to rounding functions (such as floor) must be dimensionless. Therefore, the input signal does not have to be a scalar but must have the unit of 1 (unitless).

The port name is not visible in the block icon, but you can see this name in the underlying source file by clicking the Source code link in the Description tab of the block dialog box.

Output

expand all

Output physical signal.

The port name is not visible in the block icon, but you can see this name in the underlying source file by clicking the Source code link in the Description tab of the block dialog box.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2009a

expand all