Main Content

PS Abs

Output absolute value of input physical signal

  • PS Abs block

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

Description

The PS Abs block returns the absolute value of the input physical signal:

O=|I|

where

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

Untyped physical ports facilitate unit propagation. The output signal has the same physical unit as the input signal.

Ports

Input

expand all

Input 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.

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 R2008a

expand all