STRREP STRREP String Replace Function Usage Replace every occurance of one string with another. The general syntax for its use is p = strrep(source,find,replace) Every instance of the string find in the string source is replaced with the string replace. Any of source, find and replace can be a cell array of strings, in which case each entry has the replace operation applied.