Edit Filter
Analysis menu > Filter Data > Insert
The Edit Filter window contains the following elements:
Filter
You can enter a filter formula in the input field or create one using the lists and calculation buttons.
Data/Parameter/Nodes
Lists all existing data channels, parameters, or function nodes.
To insert a selected item from the list into the formula, use
.
Calculation buttons
|
Inserts the *, /, +, or - operator into the expression. This results in element-wise multiplication, division, addition, or subtraction. |
|
Inserts the square root sqrt( operator into the expression. The expression must end with ).. |
|
Inserts the ^ operator into the expression. x^y means row-by-row x to the power of y. |
|
Inserts the absolute value abs( operator into the expression. The expression must end with ).
|
|
Inserts the bswitch( operator into the expression. The expression must end with ). Binary switch, element-wise: y = bswitch (x, a, b) y = a for x <= 0 y = b for x > 0
|
|
Inserts an opening or closing bracket into the expression. |
|
Inserts a comma into the expression. |
|
|
Inserts the min(/max( operator into the expression. The expression must end with ).. min = minimum of two inputs max = maximum of two inputs
|
|
|
Inserts the & operator into the expression, which means a logical element-wise AND.
|
|
|
Inserts the | operator into the expression, which means a logical element-wise OR.
|
|
|
Inserts the ~ operator into the expression, which means a logical not.
|
|
|
Inserts the cumsum( operator into the expression, which means the cumulative sum of a numerical sequence. The expression must end with ).
|
|
|
Inserts the </<=/==/>=/> operator into the expression, which means is less than/less than or equal to/equal to/greater than or equal to/greater than. |
|
|
Inserts the roundToDiscreteValues( operator into the expression, which rounds a node to a specific discrete value. The expression must end with ). After inserting the operator, you need to select a discrete parameter and enter the desired values. The syntax is as follows: roundToDiscreteValues(node, [value1, value2, ...]) |
|
|
Deletes the last entry in the expression field (backspace). |
|
The following operators are supported. Select them from the burger menu ( |
|
|
log(x) |
The natural logarithm (base e).
|
|
log10(x) |
The common logarithm (base 10).
|
|
exp(x) |
Euler's number raised to the power of ex.
|
|
sin(x), cos(x), tan(x), tanh(x), atan(x) |
The trigonometric functions, the input is in radians.
|
|
atan2(x, y) |
The four-quadrant inverse tangent, input is given in radians.
|
| delayseq(data, n) |
Delay a signal by n time steps. The start of the signal is filled with zeros.
|
| bitget(x, bitPos) |
The MATLAB® bitget function returns a bit value at a specified position (bitPos). |
|
Further notations are supported: |
|
|
z = [x, y] |
Creates a multidimensional vector. A vector can be extracted with y = z(:, 2). This can be useful, e.g., when a subfunction shall returns multiple nodes/vectors. |
|
y = zeros(size(x)) |
Creates a vector of zeros. |
|
y = ones(size(x)) |
Creates a vector of ones. |
?
Opens the online help in the appropriate context.
Validate
Checks the validity of the expression.
OK
Applies your settings and closes the window.
Cancel
Discards your settings and closes the window.
See also


) or type them in manually: