PS Abs

Output absolute value of input physical signal

  • Library:
  • 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 (accessible by clicking the Source code link in 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 (accessible by clicking the Source code link in the block dialog box).

Compatibility Considerations

expand all

Behavior changed in R2019a

Extended Capabilities

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

Introduced in R2008a