7 lines
158 B
Mathematica
7 lines
158 B
Mathematica
|
|
function Z = replace(X,Y,W)
|
||
|
|
%REPLACE Substitutes variables
|
||
|
|
%
|
||
|
|
%Z = REPLACE(Y,X,W) Replaces any occurence of variable Y in X with W
|
||
|
|
|
||
|
|
Z = ncvar_replace(X,Y,W);
|