%% Replace Text in String Array
% Create a string array. Starting in R2017a, you can create strings using double quotes.

str = ["the quick brown fox";
       "and the lazy dog"]

%
% Replace a substring in each element of the array.

newStr = strrep(str,'the','a')

% Copyright 2012 The MathWorks, Inc.