Version:

Last Modified: January 12, 2018

Clips the elements of an array to within the bounds of specific upper limit and lower limit.

Input array to be clipped.

This input changes to **input data point** when the data type is a double-precision, floating-point number.

Input data point to be clipped.

This input changes to **input array** when the data type is a 1D array of double-precision, floating-point numbers.

Greater than or equal to the lower limit. If **upper limit** is less than **lower limit**, this node sets the sequence **clipped array** to an empty array and returns an error.

**Default: **0

Less than or equal to the upper limit.

**Default: **0

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an **error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

**Default: **No error

The input array subjected to the upper limit and lower limit.

This output changes to **clipped data point** when the input data type is a double-precision, floating-point number.

The input data point subjected to the upper limit and lower limit.

This output changes to **clipped array** when the input data type is a 1D array of double-precision, floating-point numbers.

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

**error in** input and an **error out** output so that the node can respond to and communicate errors that occur while code is running. The value of **error in** specifies whether an error occurred before the node runs. Most nodes respond to values of **error in** in a standard, predictable way.

Let the sequence *Y* represent the output sequence **clipped array**. Then the elements of *Y* are related to the elements of **input array** by the following equation:

${Y}_{i}=\{\begin{array}{cc}a& {x}_{i}>a\\ {x}_{i}& b\le {x}_{i}\le a\\ b& {x}_{i}<b\end{array}$

for *i* = 0, 1, 2, ..., *n* - 1,

where

*x*is**input array***n*is the number of elements in**input array***a*is**upper limit***b*is**lower limit**

**Where This Node Can Run: **

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application