title: find and replace words in a cell array
body: <p>I have a <code>4902x1</code> cell array which contains strings like Blue. or Green. I want to replace a number of these strings with another word. How can this be done in MATLAB? </p>
  
  <p>For instance find</p>
  
  <pre><code>Blue.
  Red. 
  Green.
  </code></pre>
  
  <p>Replace with:</p>
  
  <pre><code>Colour.
  </code></pre>
  
  <p>Edit:</p>
  
  <pre><code>strArray = {'green.','black.'};
  strMatch = strmatch(strArray, Book2);
  strArray( strMatch(str,strArray)) = {'colour'};
  </code></pre>