%% Replace Text in Character Vector
% Create a character vector and replace a substring within it.

chr = 'The quick brown fox'

%

newChr = strrep(chr,'quick','sly')

% Copyright 2012 The MathWorks, Inc.