replace# swordfish.function.replace()# Replace oldValue with newValue in X. replace is the in-place change version of replace. Parameters: obj (Constant) – A vector/matrix. oldValue (Constant) – A scalar indicating the value to be replaced. newValue (Constant) – A scalar of the same category as X, indicating the new value. [replace]#