Setting new matrix values based on a condition

You can use a filter to divide the matrix values into two groups. Then you can replace their values with different values.

1.  Make sure that you have opened the desired matrices (Opening matrices).

2.  On the Matrix editor window toolbar, click the  Set values conditionally symbol.

Tip: Alternatively, you can select menu Matrix editor  > Arithmetic operations > Set values conditionally.

The Set values conditionally window opens.

3.  Enter the desired data.

Element

Description

From

Lower filter threshold

Values < threshold do not belong to the interval. Whether the threshold belongs to the interval or not depends on activation of the Including interval boundaries option.

Note

Negative values are permitted, empty entries are not permitted.

To

Upper threshold of the filter

Values > threshold do not belong to the interval. Whether the threshold belongs to the interval or not depends on activation of the Including interval boundaries option.

Note

Negative values are permitted, empty entries are not permitted.

Including interval boundaries

Select this option to include the threshold values in the interval.

Within interval

New value for all matrix values that lie within the interval

Note

If you do not make an entry, the matrix values within the interval are not overwritten.

Outside of interval

New value for all matrix values that lie outside the interval

Note

If you do not make an entry, the matrix values outside the interval are not overwritten.

4.  Confirm with OK.

The matrix values are modified according to the settings.