Edit: Replace
Find and replace values in matrix using conditions
1. mreplace cond:=eq find:=1.3 abs_error:=0.1 replace:=13 use_abs:=1 keep_sign:=1
2. mreplace cond:=ne find:=1.1 set_missing:=1 replace:=0
Please refer to the page for additional option switches when accessing the x-function from script
Input/Output
MatrixObject
Input
int
Option list:
double
Output
See the syntax here.
This X-Function is capable of finding and replacing data in matrix cells.
This example shows you how to replace values that are less than 1000 with 1000 in the active matrix.
mreplace -d;
wreplace